foodsoft/app/views/shared/_article_fields_units.html.haml

7 lines
422 B
Text
Raw Permalink Normal View History

-# use the local 'f', or supply 'f_uq' and 'f_unit' for more control (like in balancing)
.fold-line
= (f_uq rescue f).input :unit_quantity, label: Article.human_attribute_name(:unit),
input_html: {class: 'input-mini', title: Article.human_attribute_name(:unit_quantity)}
= (f_unit rescue f).input :unit, label: '×'.html_safe,
input_html: {class: 'input-mini', title: Article.human_attribute_name(:unit)}