added csv download

This commit is contained in:
dinsmol 2021-08-11 22:28:20 +03:00
parent c7e92452af
commit 7f8eee52f4
41 changed files with 259 additions and 35 deletions

View file

@ -35,11 +35,12 @@
.form-group
= f.label t(:created_before)
= f.search_field :created_at_lteq, value: params[:q][:created_at_lteq], class: 'form-control js-datepicker', placeholder: t(:created_before)
.col-md-3{style: 'padding-top: 25px;'}
.col-md-3{style: 'padding-top: 25px;float:right;padding-right: 0px;'}
%button.btn.btn-primary
 
%span.glyphicon.glyphicon-search
 
= link_to(t('.csv_btn'), admin_repp_logs_path(format: :csv, params: params.permit!), class: 'btn btn-default')
= link_to(t('.reset_btn'), admin_repp_logs_path, class: 'btn btn-default')
%hr
.row
@ -48,6 +49,7 @@
.pull-right
.pagination
= t(:result_count, count: @count) if @count > 0
.row
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%thead