Add CSV downloads for BankTransaction and Invoice
This commit is contained in:
parent
e0c0834690
commit
9f2e630266
6 changed files with 96 additions and 6 deletions
|
|
@ -1,4 +1,8 @@
|
|||
.pull-right
|
||||
.btn-group
|
||||
= link_to url_for(query: params[:query], format: :csv), class: 'btn' do
|
||||
= glyph :download
|
||||
CSV
|
||||
- if @bank_transactions.total_pages > 1
|
||||
.btn-group= items_per_page wrap: false
|
||||
= pagination_links_remote @bank_transactions
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
- if Invoice.count > 20
|
||||
= items_per_page
|
||||
.pull-right
|
||||
.btn-group
|
||||
= link_to url_for(query: params[:query], format: :csv), class: 'btn' do
|
||||
= glyph :download
|
||||
CSV
|
||||
- if @invoices.total_pages > 1
|
||||
= items_per_page
|
||||
= pagination_links_remote @invoices
|
||||
|
||||
%table.table.table-striped
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue