This commit is contained in:
Xavier J 2016-11-17 11:24:49 +01:00
parent d144047a50
commit 6e4ddcdbcf
2 changed files with 3 additions and 3 deletions

View file

@ -30,14 +30,14 @@ class Backoffice::DossiersListController < ApplicationController
def smartlisting_dossier dossiers_list=nil, liste='a_traiter' def smartlisting_dossier dossiers_list=nil, liste='a_traiter'
dossiers_list_facade liste dossiers_list_facade liste
@dossiers_list = dossiers_list_facade.dossiers_to_display if dossiers_list.nil? dossiers_list = dossiers_list_facade.dossiers_to_display if dossiers_list.nil?
if param_page.nil? if param_page.nil?
params[:dossiers_smart_listing] = {page: dossiers_list_facade.service.default_page} params[:dossiers_smart_listing] = {page: dossiers_list_facade.service.default_page}
end end
@dossiers = smart_listing_create :dossiers, @dossiers = smart_listing_create :dossiers,
@dossiers_list, dossiers_list,
partial: "backoffice/dossiers/list", partial: "backoffice/dossiers/list",
array: true, array: true,
default_sort: dossiers_list_facade.service.default_sort default_sort: dossiers_list_facade.service.default_sort

View file

@ -6,7 +6,7 @@
=t('dynamics.backoffice.title') =t('dynamics.backoffice.title')
%div.dropdown.pull-right#download_menu %div.dropdown.pull-right#download_menu
- if @dossiers_list.count > 200 - if @dossiers_list_facade.dossiers_to_display.count > 200
%button.btn.btn-error.dropdown-toggle#dropdownDownloadMenu{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false, class: 'disabled'} %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 200, merci de bien vouloir appliquer des filtres.'} %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 200, merci de bien vouloir appliquer des filtres.'}
= t('dynamics.backoffice.limit_excess_download_all_dossiers') = t('dynamics.backoffice.limit_excess_download_all_dossiers')