EncyclopediaOfLife/eol — comment on commit d2672806882342e36b5681d0d7dd7da7dc58cdfd
File: app/views/admins/statistics/rich_page.html.haml line 9
By lwalley:

This checkbox should have a label element, also it should appear before the submit button. When you build forms, think about linear content - that is think about how the content would be read if there were no styling. At the moment the submit button comes first and then the checkbox. The submit button should always come after the form elements as it is the last thing the user will do after considering what elements of the form to fill our or select. There are a number of form helpers that you can use rather than specifying %input which in my opinion makes the code easier to read - check out http://guides.rubyonrails.org/v2.3.8/form_helpers.html - also with the form helpers they can be customised to produce standardised form markup e.g. if you take a look at ApplicationHelper::EolFormBuilder in application_helper.rb I have modified the label helper to take a block so that elements can be nested within a label element which is a common way to layout checkboxes.