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

15 lines
542 B
Plaintext
Raw Normal View History

- title t('.title')
%p!= t('.paragraph', name: @ordergroup.name)
= simple_form_for @financial_transaction, :url => finance_ordergroup_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_ordergroup_transactions_path(@ordergroup)