Adding style for download link as dropdown menu, changing locales

This commit is contained in:
JC 2016-11-08 15:28:39 +01:00
parent 7b8b5e28e1
commit 23ee1cb21c
3 changed files with 21 additions and 7 deletions

View file

@ -290,4 +290,4 @@ div.pagination {
margin-right: 0px !important;
}
}
}

View file

@ -2,12 +2,25 @@
#pref_list_menu
= render partial: 'backoffice/dossiers/pref_list'
=link_to t('dynamics.backoffice.download_all_dossiers_csv'), backoffice_download_dossiers_tps_path(format: :csv), {class: 'btn btn-success btn-sm', style: 'float: right; margin-right: 4%; margin-top: 7px'}
=link_to t('dynamics.backoffice.download_all_dossiers_xlsx'), backoffice_download_dossiers_tps_path(format: :xlsx), {class: 'btn btn-success btn-sm', style: 'float: right; margin-right: 4%; margin-top: 7px'}
=link_to t('dynamics.backoffice.download_all_dossiers_ods'), backoffice_download_dossiers_tps_path(format: :ods), {class: 'btn btn-success btn-sm', style: 'float: right; margin-right: 4%; margin-top: 7px'}
%h1
=t('dynamics.backoffice.title')
%div.dropdown.pull-right#download_menu
%button.btn.btn-default.dropdown-toggle#dropdownDownloadMenu{ 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), { class: 'btn btn-sm' } do
= t('dynamics.backoffice.format_csv')
%li
= link_to backoffice_download_dossiers_tps_path(format: :xlsx), { class: 'btn btn-sm' } do
= t('dynamics.backoffice.format_xlsx')
%li
= link_to backoffice_download_dossiers_tps_path(format: :ods), { class: 'btn btn-sm' } do
= t('dynamics.backoffice.format_ods')
= render partial: 'backoffice/dossiers/onglets'
= smart_listing_render :dossiers

View file

@ -11,9 +11,10 @@ fr:
pref_list:
title: 'Gestion de colonnes affichées'
description: 'Ce menu vous permet de choisir les différentes colonnes que vous souhaitez voir apparaître dans votre interface de suivi des dossiers.'
download_all_dossiers_csv: 'Tous mes dossiers en CSV'
download_all_dossiers_xlsx: 'Tous mes dossiers en XLSX'
download_all_dossiers_ods: 'Tous mes dossiers en ODS'
download_all_dossiers: 'Télécharger mes dossiers'
format_csv: 'Au format CSV'
format_xlsx: 'Au format XLSX'
format_ods: 'Au format ODS'
research:
placeholder: 'Rechercher un dossier ...'
filter_procedure: