admin ui: change checkboxes and filters html structure

- The state of checkboxes changes by css. The js code only changes
a class of the parent element. In order this to work, the html includes
two dom elements, one for each state of the checkbox.

- Set data-filter attribute in the root element of each filter.