- Delete page « Tous les dossiers »

- Fix follow tab
This commit is contained in:
Xavier J 2016-11-28 14:38:33 +01:00
parent f4b483976c
commit 178f0f88c1
3 changed files with 5 additions and 5 deletions

View file

@ -3,8 +3,8 @@ class Backoffice::DossiersController < Backoffice::DossiersListController
def index
super
dossiers_list_facade.service.filter_procedure_reset!
@facade_data_view = dossiers_list_facade
procedure = dossiers_list_facade.gestionnaire_procedures_name_and_id_list.first
redirect_to backoffice_dossiers_procedure_path(id: procedure[:id])
end
def show

View file

@ -17,7 +17,7 @@ class DossiersListGestionnaireService
end
def self.dossiers_liste_libelle
['nouveaux', 'suivi', 'a_traiter', 'fige' ,'deposes', 'a_instruire', 'termine', 'all_state']
['nouveaux', 'suivi', 'a_traiter', 'fige', 'deposes', 'a_instruire', 'termine', 'all_state']
end
def all_state
@ -25,7 +25,7 @@ class DossiersListGestionnaireService
end
def suivi
@suivi ||= @current_devise_profil.dossiers_follow
@suivi ||= @current_devise_profil.dossiers_follow.merge(all_state)
end
def nouveaux
@ -188,4 +188,5 @@ class DossiersListGestionnaireService
def current_preference_smart_listing_page
@current_devise_profil.preference_smart_listing_page
end
end

View file

@ -20,7 +20,6 @@
%div#infos-block
#procedure_list
%div.procedure_list_element
=link_to "Tous les dossiers", backoffice_dossiers_path
- @dossiers_list_facade.gestionnaire_procedures_name_and_id_list.each do |procedure|
%div.procedure_list_element
=link_to truncate(procedure[:libelle], {length: 50}), backoffice_dossiers_procedure_path(procedure[:id]),{title: procedure[:libelle]}