Add accompagnateur tab on all procedure navbar
This commit is contained in:
parent
143a683303
commit
fe4d921997
4 changed files with 28 additions and 0 deletions
9
app/views/admin/accompagnateurs/show.html.haml
Normal file
9
app/views/admin/accompagnateurs/show.html.haml
Normal file
|
@ -0,0 +1,9 @@
|
|||
%h2.text-info
|
||||
=@procedure.libelle
|
||||
%br
|
||||
|
||||
%ul.nav.nav-tabs
|
||||
= render partial: 'admin/procedures/navbar', locals: {active: 'Accompagnateurs'}
|
||||
|
||||
#accompagnateur_form
|
||||
plop
|
|
@ -1,6 +1,9 @@
|
|||
%li{ class: ('active' if active == 'Informations') }
|
||||
= link_to('Informations', admin_procedure_path(@procedure))
|
||||
|
||||
%li{ class: ('active' if active == 'Accompagnateurs') }
|
||||
= link_to('Accompagnateurs', admin_procedure_accompagnateurs_path(@procedure))
|
||||
|
||||
%li{ class: ('disabled' if @procedure.locked?) || ('active' if active == 'Description') }
|
||||
= link_to_unless(@procedure.locked?, 'Description', edit_admin_procedure_path(@procedure)) do
|
||||
= link_to('Description', '#')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue