2015-12-02 18:03:52 +01:00
#backoffice_index
2016-08-01 18:10:32 +02:00
#pref_list_menu
2016-09-06 11:07:26 +02:00
= render partial: 'backoffice/dossiers/pref_list'
2016-10-18 15:51:32 +02:00
2016-11-03 16:46:26 +01:00
%h1
=t('dynamics.backoffice.title')
2016-10-18 15:51:32 +02:00
2016-11-08 15:28:39 +01:00
%div.dropdown.pull-right#download_menu
2016-11-16 11:12:04 +01:00
- if @dossiers.count > 200
%button.btn.btn-error.dropdown-toggle#dropdownDownloadMenu{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false, class: 'disabled', 'data-toggle' => :tooltip, title: 'Pour réduire le nombre de dossiers et ne pas dépasser la limite autorisée de 200 dossiers en téléchargement, merci de bien vouloir appliquer vos filtres.'}
2016-11-15 17:06:40 +01:00
= t('dynamics.backoffice.limit_excess_download_all_dossiers')
2016-11-16 11:12:04 +01:00
- else
%button.btn.btn-success.dropdown-toggle#dropdownDownloadMenu{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false }
2016-11-15 17:06:40 +01:00
%i.fa.fa-download
= t('dynamics.backoffice.download_all_dossiers')
2016-11-08 15:28:39 +01:00
%span.caret
%ul.dropdown-menu.dropdown-menu-right
%li
2016-11-09 09:19:57 +01:00
= link_to backoffice_download_dossiers_tps_path(format: :csv, procedure_id: params[:id]), { class: 'btn btn-sm' } do
2016-11-08 15:28:39 +01:00
= t('dynamics.backoffice.format_csv')
%li
2016-11-09 09:19:57 +01:00
= link_to backoffice_download_dossiers_tps_path(format: :xlsx, procedure_id: params[:id]), { class: 'btn btn-sm' } do
2016-11-08 15:28:39 +01:00
= t('dynamics.backoffice.format_xlsx')
%li
2016-11-09 09:19:57 +01:00
= link_to backoffice_download_dossiers_tps_path(format: :ods, procedure_id: params[:id]), { class: 'btn btn-sm' } do
2016-11-08 15:28:39 +01:00
= t('dynamics.backoffice.format_ods')
2016-10-24 16:00:03 +02:00
= render partial: 'backoffice/dossiers/onglets'
2015-11-13 15:23:21 +01:00
2016-01-08 11:39:04 +01:00
= smart_listing_render :dossiers
2016-08-12 13:56:10 +02:00
%br
%br
2016-10-24 14:56:01 +02:00
- unless Features.opensimplif
= render partial: 'backoffice/dossiers/state_description', locals: {dossiers_list_facade: @dossiers_list_facade}