Fix test
This commit is contained in:
parent
d144047a50
commit
6e4ddcdbcf
2 changed files with 3 additions and 3 deletions
|
@ -30,14 +30,14 @@ class Backoffice::DossiersListController < ApplicationController
|
|||
|
||||
def smartlisting_dossier dossiers_list=nil, liste='a_traiter'
|
||||
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?
|
||||
params[:dossiers_smart_listing] = {page: dossiers_list_facade.service.default_page}
|
||||
end
|
||||
|
||||
@dossiers = smart_listing_create :dossiers,
|
||||
@dossiers_list,
|
||||
dossiers_list,
|
||||
partial: "backoffice/dossiers/list",
|
||||
array: true,
|
||||
default_sort: dossiers_list_facade.service.default_sort
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
=t('dynamics.backoffice.title')
|
||||
|
||||
%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'}
|
||||
%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')
|
||||
|
|
Loading…
Reference in a new issue