Add UI to manage the financial transaction types and classes

This commit is contained in:
Patrick Gansterer 2017-06-28 12:56:56 +02:00
parent 924f346b4c
commit dae4d075fe
18 changed files with 171 additions and 0 deletions

View file

@ -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'

View file

@ -0,0 +1,2 @@
$('#modalContainer').html('#{j(render("form"))}');
$('#modalContainer').modal();