Generate a table with selectable rows with a checkbox in each one. Also it adds a checkbox in the header to select all the rows at once.