demarches-normaliennes/app/views/backoffice/dossiers/index.html.haml

35 lines
1.4 KiB
Text
Raw Normal View History

#backoffice_index
#pref_list_menu
= render partial: 'backoffice/dossiers/pref_list'
2016-11-03 16:46:26 +01:00
%h1
=t('dynamics.backoffice.title')
%div.dropdown.pull-right#download_menu
%button.btn.btn-success.dropdown-toggle#dropdownDownloadMenu{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false, class: ('disabled' if (@dossiers.count > 200)) }
- if (@dossiers.count > 200)
= t('dynamics.backoffice.limit_excess_download_all_dossiers')
- else
%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')
= render partial: 'backoffice/dossiers/onglets'
2016-01-08 11:39:04 +01:00
= smart_listing_render :dossiers
%br
%br
- unless Features.opensimplif
= render partial: 'backoffice/dossiers/state_description', locals: {dossiers_list_facade: @dossiers_list_facade}