Add admin UI for BankGateway
This commit is contained in:
parent
87fe9ccdb1
commit
79fdb4dafb
11 changed files with 99 additions and 0 deletions
13
app/views/admin/finances/_bank_gateways.html.haml
Normal file
13
app/views/admin/finances/_bank_gateways.html.haml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%table.table.table-striped
|
||||
%thead
|
||||
%tr
|
||||
%th= heading_helper BankGateway, :name
|
||||
%th
|
||||
%tbody
|
||||
- @bank_gateways.each do |bank_gateway|
|
||||
%tr
|
||||
%td= bank_gateway.name
|
||||
%td
|
||||
= link_to t('ui.edit'), edit_admin_bank_gateway_path(bank_gateway), remote: true, class: 'btn btn-mini'
|
||||
= link_to t('ui.delete'), [:admin, bank_gateway], :method => :delete, :data => {:confirm => t('ui.confirm_delete', name: bank_gateway.name)},
|
||||
remote: true, class: 'btn btn-mini btn-danger'
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
- content_for :actionbar do
|
||||
= link_to t('.new_financial_transaction_class'), new_admin_financial_transaction_class_path, remote: true, class: 'btn btn-primary'
|
||||
= link_to t('.new_bank_account'), new_admin_bank_account_path, remote: true, class: 'btn'
|
||||
= link_to t('.new_bank_gateway'), new_admin_bank_gateway_path, remote: true, class: 'btn'
|
||||
|
||||
- content_for :sidebar do
|
||||
%p= t('.first_paragraph').html_safe
|
||||
|
|
@ -12,3 +13,6 @@
|
|||
|
||||
%h2= t('.bank_accounts')
|
||||
#bank_accounts_table= render 'bank_accounts'
|
||||
|
||||
%h2= t('.bank_gateways')
|
||||
#bank_gateways_table= render 'bank_gateways'
|
||||
|
|
|
|||
2
app/views/admin/finances/update_bank_gateways.js.haml
Normal file
2
app/views/admin/finances/update_bank_gateways.js.haml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$('#bank_gateways_table').html('#{escape_javascript(render("admin/finances/bank_gateways"))}');
|
||||
$('#modalContainer').modal('hide');
|
||||
Loading…
Add table
Add a link
Reference in a new issue