Keep procedure filter when gestionnaire select on
This commit is contained in:
parent
1f1b235283
commit
ee9c38c0f8
3 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,8 @@ class Backoffice::Dossiers::ProcedureController < ApplicationController
|
|||
cookies[:liste] = params[:liste] || cookies[:liste] || 'a_traiter'
|
||||
smartlisting_dossier cookies[:liste]
|
||||
|
||||
current_gestionnaire.update_column :procedure_filter, [params[:id]]
|
||||
|
||||
render 'backoffice/dossiers/index'
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
flash[:alert] = "Cette procédure n'existe pas ou vous n'y avez pas accès."
|
||||
|
|
|
@ -6,6 +6,9 @@ class Backoffice::DossiersController < ApplicationController
|
|||
|
||||
def index
|
||||
cookies[:liste] = params[:liste] || cookies[:liste] || 'a_traiter'
|
||||
|
||||
current_gestionnaire.update_column :procedure_filter, []
|
||||
|
||||
smartlisting_dossier (cookies[:liste])
|
||||
end
|
||||
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
= image_tag('marianne_small.png', class: 'logo')
|
||||
%a{href: '/'}
|
||||
= image_tag('logo-tps.png', class: 'logo')
|
||||
%a{href: '/', class: 'btn btn-md'}
|
||||
|
||||
%a{href: (current_gestionnaire.procedure_filter.empty? ? '/' : backoffice_dossiers_procedure_path(current_gestionnaire.procedure_filter)), class: 'btn btn-md'}
|
||||
-if gestionnaire_signed_in? || user_signed_in?
|
||||
Mes Dossiers
|
||||
-elsif administrateur_signed_in?
|
||||
|
|
Loading…
Reference in a new issue