Don't show deleted ordergroups (closes foodcoops/foodsoft#362)
This commit is contained in:
parent
a016f0d7dc
commit
c08c29b0e7
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
%tr.transaction
|
||||
%td
|
||||
= select_tag 'financial_transactions[][ordergroup_id]',
|
||||
options_for_select(Ordergroup.order(:name).map { |g| [ g.name, g.id ] })
|
||||
options_for_select(Ordergroup.undeleted.order(:name).map { |g| [ g.name, g.id ] })
|
||||
%td= text_field_tag 'financial_transactions[][amount]', nil, class: 'input-small'
|
||||
%td= link_to t('.remove'), "#", :title => t('.remove_group'), 'data-remove-transaction' => true,
|
||||
class: 'btn btn-small'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue