foodsoft/app/views/admin/bank_accounts/_form.html.haml

14 lines
477 B
Text
Raw Permalink Normal View History

2018-09-14 19:33:27 +02:00
= simple_form_for [:admin, @bank_account], :validate => true, :remote => true do |f|
.modal-header
= close_button :modal
%h3= @bank_account.new_record? ? t('.title_new') : t('.title_edit')
.modal-body
= f.input :name
= f.input :iban
= f.input :description, as: :text
= f.input :balance
2021-03-05 12:44:53 +01:00
= f.association :bank_gateway
2018-09-14 19:33:27 +02:00
.modal-footer
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
= f.submit class: 'btn btn-primary'