Add UI to manage the financial transaction types and classes
This commit is contained in:
parent
924f346b4c
commit
dae4d075fe
18 changed files with 171 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
= simple_form_for [:admin, @financial_transaction_class], :validate => true, :remote => true do |f|
|
||||
.modal-header
|
||||
= close_button :modal
|
||||
%h3= @financial_transaction_class.new_record? ? t('.title_new') : t('.title_edit')
|
||||
.modal-body
|
||||
= f.input :name
|
||||
.modal-footer
|
||||
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
|
||||
= f.submit class: 'btn btn-primary'
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
$('#modalContainer').html('#{j(render("form"))}');
|
||||
$('#modalContainer').modal();
|
||||
Loading…
Add table
Add a link
Reference in a new issue