Delete un-use code
This commit is contained in:
parent
f627957869
commit
33bfe4a29c
3 changed files with 2 additions and 127 deletions
|
@ -1,7 +1,7 @@
|
|||
class DossiersListFacades
|
||||
include Rails.application.routes.url_helpers
|
||||
|
||||
attr_accessor :procedure, :current_devise_profil
|
||||
attr_accessor :procedure, :current_devise_profil, :liste
|
||||
|
||||
def initialize current_devise_profil, liste, procedure = nil
|
||||
@current_devise_profil = current_devise_profil
|
||||
|
@ -18,10 +18,6 @@ class DossiersListFacades
|
|||
end
|
||||
end
|
||||
|
||||
def liste
|
||||
@liste
|
||||
end
|
||||
|
||||
def total_dossier
|
||||
current_devise_profil.dossiers.where(archived: false).count
|
||||
end
|
||||
|
@ -60,30 +56,10 @@ class DossiersListFacades
|
|||
(@liste == 'brouillon' ? 'active' : '')
|
||||
end
|
||||
|
||||
def nouveaux_class
|
||||
(@liste == 'nouveaux' ? 'active' : '')
|
||||
end
|
||||
|
||||
def a_traiter_class
|
||||
(@liste == 'a_traiter' ? 'active' : '')
|
||||
end
|
||||
|
||||
def en_construction_class
|
||||
(@liste == 'a_traiter' ? 'active' : '')
|
||||
end
|
||||
|
||||
def fige_class
|
||||
(@liste == 'fige' ? 'active' : '')
|
||||
end
|
||||
|
||||
def en_attente_class
|
||||
(@liste == 'en_attente' ? 'active' : '')
|
||||
end
|
||||
|
||||
def deposes_class
|
||||
(@liste == 'deposes' ? 'active' : '')
|
||||
end
|
||||
|
||||
def valides_class
|
||||
(@liste == 'valides' ? 'active' : '')
|
||||
end
|
||||
|
@ -92,26 +68,14 @@ class DossiersListFacades
|
|||
(@liste == 'en_instruction' ? 'active' : '')
|
||||
end
|
||||
|
||||
def a_instruire_class
|
||||
(@liste == 'a_instruire' ? 'active' : '')
|
||||
end
|
||||
|
||||
def termine_class
|
||||
(@liste == 'termine' ? 'active' : '')
|
||||
end
|
||||
|
||||
def suivi_class
|
||||
(@liste == 'suivi' ? 'active' : '')
|
||||
end
|
||||
|
||||
def invite_class
|
||||
(@liste == 'invite' ? 'active' : '')
|
||||
end
|
||||
|
||||
def search_class
|
||||
(@liste == 'search' ? 'active' : '')
|
||||
end
|
||||
|
||||
def all_state_total
|
||||
service.all_state.count
|
||||
end
|
||||
|
@ -124,38 +88,18 @@ class DossiersListFacades
|
|||
service.nouveaux.count
|
||||
end
|
||||
|
||||
def a_traiter_total
|
||||
service.ouvert.count
|
||||
end
|
||||
|
||||
def en_construction_total
|
||||
service.en_construction.count
|
||||
end
|
||||
|
||||
def fige_total
|
||||
service.fige.count
|
||||
end
|
||||
|
||||
def en_attente_total
|
||||
service.waiting_for_user.count
|
||||
end
|
||||
|
||||
def valides_total
|
||||
service.valides.count
|
||||
end
|
||||
|
||||
def deposes_total
|
||||
service.deposes.count
|
||||
end
|
||||
|
||||
def en_instruction_total
|
||||
service.en_instruction.count
|
||||
end
|
||||
|
||||
def a_instruire_total
|
||||
service.a_instruire.count
|
||||
end
|
||||
|
||||
def termine_total
|
||||
service.termine.count
|
||||
end
|
||||
|
@ -168,50 +112,6 @@ class DossiersListFacades
|
|||
service.invite.count
|
||||
end
|
||||
|
||||
def brouillon_url
|
||||
base_url 'brouillon'
|
||||
end
|
||||
|
||||
def all_state_url
|
||||
base_url 'all_state'
|
||||
end
|
||||
|
||||
def suivi_url
|
||||
base_url 'suivi'
|
||||
end
|
||||
|
||||
def nouveaux_url
|
||||
base_url 'nouveaux'
|
||||
end
|
||||
|
||||
def a_traiter_url
|
||||
base_url 'a_traiter'
|
||||
end
|
||||
|
||||
def en_construction_url
|
||||
base_url 'a_traiter'
|
||||
end
|
||||
|
||||
def fige_url
|
||||
base_url 'fige'
|
||||
end
|
||||
|
||||
def en_attente_url
|
||||
base_url 'en_attente'
|
||||
end
|
||||
|
||||
def deposes_url
|
||||
base_url 'deposes'
|
||||
end
|
||||
|
||||
def a_instruire_url
|
||||
base_url 'a_instruire'
|
||||
end
|
||||
|
||||
def termine_url
|
||||
base_url 'termine'
|
||||
end
|
||||
|
||||
def filter_url
|
||||
@procedure.nil? ? backoffice_dossiers_filter_path(liste: liste) : backoffice_dossiers_procedure_filter_path(id: @procedure.id, liste: liste)
|
||||
end
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
#onglets
|
||||
%ul.nav.nav-tabs
|
||||
- unless Features.opensimplif
|
||||
%li{ class: (@dossiers_list_facade.nouveaux_class)}
|
||||
%a{:href => "#{url_for @dossiers_list_facade.nouveaux_url}", 'data-toggle' => :tooltip, title: 'Les nouveaux dossiers non ouverts.'}
|
||||
%h5.text-info
|
||||
= "Nouveaux "
|
||||
.badge.progress-bar-info
|
||||
= @dossiers_list_facade.nouveaux_total
|
||||
|
||||
%li{ class: (@dossiers_list_facade.suivi_class) }
|
||||
%a{:href => "#{url_for @dossiers_list_facade.suivi_url}", 'data-toggle' => :tooltip, title: 'Les dossiers qui ne sont pas encore déclarés complets.'}
|
||||
%h5.text-danger
|
||||
= "Suivis"
|
||||
.badge.progress-bar-danger
|
||||
= @dossiers_list_facade.suivi_total
|
||||
|
||||
%li{ class: (@dossiers_list_facade.all_state_class) }
|
||||
%a{:href => "#{url_for @dossiers_list_facade.all_state_url}", 'data-toggle' => :tooltip, title: 'Les dossiers qui sont déclarés complets et donc figés.'}
|
||||
%h5.text-default
|
||||
= "Tous"
|
||||
.badge.progress-bar-default
|
||||
= @dossiers_list_facade.all_state_total
|
|
@ -14,6 +14,4 @@
|
|||
= render partial: 'layouts/credentials'
|
||||
-else
|
||||
.col-lg-1.col-md-1#sign_in
|
||||
= link_to "Connexion", '/users/sign_in', :class => 'btn btn-lg'
|
||||
-unless Features.unified_login
|
||||
= link_to "Accompagnateur", '/gestionnaires/sign_in', :class => 'btn btn-md'
|
||||
= link_to "Connexion", '/users/sign_in', :class => 'btn btn-lg'
|
Loading…
Reference in a new issue