foodsoft/app/views/admin/finances/_bank_accounts.html.haml

18 lines
729 B
Text
Raw Permalink Normal View History

2018-09-14 19:33:27 +02:00
%table.table.table-striped
%thead
%tr
%th= heading_helper BankAccount, :name
%th= heading_helper BankAccount, :iban
%th= heading_helper BankAccount, :description
%th
%tbody
- @bank_accounts.each do |bank_account|
%tr
%td= bank_account.name
%td= format_iban bank_account.iban
2018-09-14 19:33:27 +02:00
%td= truncate bank_account.description, length: 50
%td
= link_to t('ui.edit'), edit_admin_bank_account_path(bank_account), remote: true, class: 'btn btn-mini'
= link_to t('ui.delete'), [:admin, bank_account], :method => :delete, :data => {:confirm => t('ui.confirm_delete', name: bank_account.name)},
remote: true, class: 'btn btn-mini btn-danger'