3e55d7ba3b
- Add routes 'uses/dossiers/?liste=xxx' to reach at file lists for user
32 lines
No EOL
1.4 KiB
Text
32 lines
No EOL
1.4 KiB
Text
%h1 Gestion des dossiers
|
|
%br
|
|
|
|
#onglets
|
|
%ul.nav.nav-tabs
|
|
%li{ class: (@dossiers.active_class_a_traiter(@liste) unless @dossiers.nil?) }
|
|
%a{:href => "#{url_for backoffice_dossiers_path(liste: 'a_traiter')}"}
|
|
%h5.text-danger
|
|
= "À traiter "
|
|
.badge.progress-bar-danger
|
|
=@dossiers_a_traiter_total
|
|
%li{ class: (@dossiers.active_class_en_attente(@liste) unless @dossiers.nil?) }
|
|
%a{:href => "#{url_for backoffice_dossiers_path(liste: 'en_attente')}"}
|
|
%h5.text-info
|
|
="En attente "
|
|
.badge.progress-bar-info
|
|
=@dossiers_en_attente_total
|
|
%li{ class: (@dossiers.active_class_termine(@liste) unless @dossiers.nil?) }
|
|
%a{:href => "#{url_for backoffice_dossiers_path(liste: 'termine')}"}
|
|
%h5.text-success
|
|
= "Terminé"
|
|
.badge.progress-bar-success
|
|
=@dossiers_termine_total
|
|
%li#search{class: "#{'active' unless @dossiers_search.nil?}", style:'float:right'}
|
|
%a
|
|
= form_tag(backoffice_dossiers_search_url, method: :get) do
|
|
.input-group{style:'width: 300px'}
|
|
= text_field_tag('q', "#{@search_terms unless @search_terms.nil? }", id: 'q', placeholder: "Rechercher un dossier ...", class:'form-control')
|
|
%span.input-group-btn
|
|
%button.btn.btn-default{ id:'search_button' }
|
|
%i.fa.fa-search
|
|
%br |