Add admin UI for BankGateway
This commit is contained in:
parent
87fe9ccdb1
commit
79fdb4dafb
11 changed files with 99 additions and 0 deletions
12
app/views/admin/bank_gateways/_form.html.haml
Normal file
12
app/views/admin/bank_gateways/_form.html.haml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
= simple_form_for [:admin, @bank_gateway], :validate => true, :remote => true do |f|
|
||||
.modal-header
|
||||
= close_button :modal
|
||||
%h3= @bank_gateway.new_record? ? t('.title_new') : t('.title_edit')
|
||||
.modal-body
|
||||
= f.input :name
|
||||
= f.input :url
|
||||
= f.input :authorization
|
||||
= f.association :unattended_user
|
||||
.modal-footer
|
||||
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
|
||||
= f.submit class: 'btn btn-primary'
|
||||
2
app/views/admin/bank_gateways/new.js.haml
Normal file
2
app/views/admin/bank_gateways/new.js.haml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$('#modalContainer').html('#{j(render("form"))}');
|
||||
$('#modalContainer').modal();
|
||||
Loading…
Add table
Add a link
Reference in a new issue