introduce new layout in balancing article screen as well
This commit is contained in:
parent
3f497e9274
commit
699be6a6d9
4 changed files with 51 additions and 45 deletions
6
app/views/shared/_article_fields_units.html.haml
Normal file
6
app/views/shared/_article_fields_units.html.haml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
-# 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)}
|
||||
Loading…
Add table
Add a link
Reference in a new issue