siyelo/hrt — comment on commit 439fb83544e9b95fc5711abeded6bb528e74e0a1
File: app/views/organizations/_form.html.haml line 19
By glennr:

Maybe I should have been more explicit with what I wanted to see in this refactoring.

:label_html => {:class => 'indented'} is repeated on each line. Refactor

:required => true is repeated several times. Refactor.

:wrapper_html => {:class => 'input-wrapper'} is repeated. Refactor.

In fact, you could use one helper method with smart defaults to build all these rows

e.g.
def contact_input_field(hint = '', required = true, tabindex = autotab, wrapper_class= 'input-wrapper', label_class = 'indented')
...