Add CSV downloads for BankTransaction and Invoice

This commit is contained in:
Patrick Gansterer 2021-02-08 01:07:10 +01:00
parent e0c0834690
commit 9f2e630266
6 changed files with 96 additions and 6 deletions

View file

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

View file

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