foodsoft/app/views/finance/financial_links/_new_financial_transaction.html.haml

15 lines
605 B
Text
Raw Permalink Normal View History

= simple_form_for @financial_transaction, url: create_financial_transaction_finance_link_path(@financial_link),
:validate => true do |f|
.modal-header
= close_button :modal
%h3= t('.title')
.modal-body
- if FinancialTransactionType.has_multiple_types
= f.association :financial_transaction_type, include_blank: false
= f.input :amount
= f.association :ordergroup, collection: Ordergroup.undeleted.order(:name)
= f.input :note, :as => :text
.modal-footer
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
= f.submit class: 'btn btn-primary'