Add tabs on view list file for users
This commit is contained in:
parent
f449be5c4e
commit
da49c633dc
22 changed files with 242 additions and 85 deletions
|
@ -1,6 +1,3 @@
|
|||
%h1#users_dossiers_index Vos dossiers
|
||||
%br
|
||||
%br
|
||||
%table.table
|
||||
%thead
|
||||
%th Procédure
|
24
app/views/users/dossiers/_onglets.html.haml
Normal file
24
app/views/users/dossiers/_onglets.html.haml
Normal file
|
@ -0,0 +1,24 @@
|
|||
%h1 Mes dossiers
|
||||
%br
|
||||
|
||||
#onglets
|
||||
%ul.nav.nav-tabs
|
||||
%li{class: "#{'active' unless @dossiers_a_traiter.nil? }"}
|
||||
%a{:href => "#{url_for :users_dossiers_a_traiter}"}
|
||||
%h5.text-danger
|
||||
= "À traiter "
|
||||
.badge.progress-bar-danger
|
||||
= @dossiers_a_traiter_total
|
||||
%li{class: "#{'active' unless @dossiers_en_attente.nil? }"}
|
||||
%a{:href => "#{url_for :users_dossiers_en_attente}"}
|
||||
%h5.text-info
|
||||
="En attente "
|
||||
.badge.progress-bar-info
|
||||
= @dossiers_en_attente_total
|
||||
%li{class: "#{'active' unless @dossiers_termine.nil? }"}
|
||||
%a{:href => "#{url_for :users_dossiers_termine}"}
|
||||
%h5.text-success
|
||||
= "Terminé"
|
||||
.badge.progress-bar-success
|
||||
= @dossiers_termine_total
|
||||
%br
|
4
app/views/users/dossiers/a_traiter.html.haml
Normal file
4
app/views/users/dossiers/a_traiter.html.haml
Normal file
|
@ -0,0 +1,4 @@
|
|||
#users_a_traiter
|
||||
= render partial: 'onglets'
|
||||
|
||||
= render partial: 'list'
|
4
app/views/users/dossiers/en_attente.html.haml
Normal file
4
app/views/users/dossiers/en_attente.html.haml
Normal file
|
@ -0,0 +1,4 @@
|
|||
#users_en_attente
|
||||
= render partial: 'onglets'
|
||||
|
||||
= render partial: 'list'
|
4
app/views/users/dossiers/termine.html.haml
Normal file
4
app/views/users/dossiers/termine.html.haml
Normal file
|
@ -0,0 +1,4 @@
|
|||
#users_termine
|
||||
= render partial: 'onglets'
|
||||
|
||||
= render partial: 'list'
|
Loading…
Add table
Add a link
Reference in a new issue