20 lines
1.4 KiB
Text
20 lines
1.4 KiB
Text
%div.dropdown.pull-right#download-menu
|
|
- if @dossiers_list_facade.dossiers_to_display.count > 400
|
|
%button.btn.btn-error.dropdown-toggle#dropdownDownloadMenu{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false, class: 'disabled'}
|
|
%span{'data-toggle' => :tooltip, "data-placement" => :left, title: 'Pour réduire le nombre de dossiers et ne pas dépasser la limite autorisée de 400, merci de bien vouloir appliquer des filtres.'}
|
|
= t('dynamics.backoffice.limit_excess_download_all_dossiers')
|
|
- else
|
|
%a.dropdown-toggle#dropdownDownloadMenu.button_navbar{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false }
|
|
%i.fa.fa-download
|
|
= t('dynamics.backoffice.download_all_dossiers')
|
|
-#%span.caret
|
|
%ul.dropdown-menu.dropdown-menu-right
|
|
%li
|
|
= link_to backoffice_download_dossiers_tps_path(format: :csv, procedure_id: params[:id]), { class: 'btn btn-sm' } do
|
|
= t('dynamics.backoffice.format_csv')
|
|
%li
|
|
= link_to backoffice_download_dossiers_tps_path(format: :xlsx, procedure_id: params[:id]), { class: 'btn btn-sm' } do
|
|
= t('dynamics.backoffice.format_xlsx')
|
|
%li
|
|
= link_to backoffice_download_dossiers_tps_path(format: :ods, procedure_id: params[:id]), { class: 'btn btn-sm' } do
|
|
= t('dynamics.backoffice.format_ods')
|