Merge pull request #732 from sgmap/download_dossiers_on_procedure
Add download dossiers button on procedure#show
This commit is contained in:
commit
e7b488361b
2 changed files with 20 additions and 0 deletions
|
@ -23,4 +23,12 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 60px 0;
|
margin: 60px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.procedure-actions {
|
||||||
|
margin-left: auto;
|
||||||
|
|
||||||
|
.dropdown-items li {
|
||||||
|
min-width: 150px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,18 @@
|
||||||
= t('pluralize.archived', count: @archived_dossiers.count)
|
= t('pluralize.archived', count: @archived_dossiers.count)
|
||||||
%span.badge= @archived_dossiers.count
|
%span.badge= @archived_dossiers.count
|
||||||
|
|
||||||
|
.procedure-actions
|
||||||
|
%span.button.dropdown
|
||||||
|
Télécharger tous les dossiers
|
||||||
|
.dropdown-content.fade-in-down
|
||||||
|
%ul.dropdown-items
|
||||||
|
%li
|
||||||
|
= link_to "Au format .csv", backoffice_download_dossiers_tps_path(format: :csv, procedure_id: @procedure.id), target: "_blank"
|
||||||
|
%li
|
||||||
|
= link_to "Au format .xls", backoffice_download_dossiers_tps_path(format: :xls, procedure_id: @procedure.id), target: "_blank"
|
||||||
|
%li
|
||||||
|
= link_to "Au format .ods", backoffice_download_dossiers_tps_path(format: :ods, procedure_id: @procedure.id), target: "_blank"
|
||||||
|
|
||||||
.container
|
.container
|
||||||
- if @dossiers.present?
|
- if @dossiers.present?
|
||||||
%table.table.dossiers-table.hoverable
|
%table.table.dossiers-table.hoverable
|
||||||
|
|
Loading…
Reference in a new issue