foodsoft/app/views/finance/financial_transactions/new.html.haml

17 lines
590 B
Text

- title t('.title')
- if @ordergroup
%p!= t('.paragraph', name: @ordergroup.name)
- else
%p!= t('.paragraph_foodcoop')
= simple_form_for @financial_transaction, :url => finance_group_transactions_path(@ordergroup),
:validate => true do |f|
= f.hidden_field :ordergroup_id
- if FinancialTransactionType.has_multiple_types
= f.association :financial_transaction_type, :as => :radio_buttons
= f.input :amount
= f.input :note, :as => :text
.form-actions
= f.submit class: 'btn btn-primary'
= link_to t('ui.or_cancel'), finance_group_transactions_path(@ordergroup)