Add procedure libelle on all edit page, above tabs
This commit is contained in:
parent
a6244cebb1
commit
6dd9c0c7ce
3 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
%h2.text-info
|
||||||
|
=@procedure.libelle
|
||||||
|
%br
|
||||||
|
|
||||||
%ul.nav.nav-tabs
|
%ul.nav.nav-tabs
|
||||||
%li= link_to('Description', admin_procedure_path(@procedure))
|
%li= link_to('Description', admin_procedure_path(@procedure))
|
||||||
%li= link_to('Champs', admin_procedure_types_de_champ_path(@procedure))
|
%li= link_to('Champs', admin_procedure_types_de_champ_path(@procedure))
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
%h2.text-info
|
||||||
|
=@procedure.libelle
|
||||||
|
%br
|
||||||
|
|
||||||
%ul.nav.nav-tabs
|
%ul.nav.nav-tabs
|
||||||
%li.active
|
%li.active
|
||||||
= link_to('Description', admin_procedure_path(@procedure))
|
= link_to('Description', admin_procedure_path(@procedure))
|
||||||
|
@ -10,7 +14,7 @@
|
||||||
%button#archive.btn.btn-nav.text-info{type: :button}
|
%button#archive.btn.btn-nav.text-info{type: :button}
|
||||||
%i.fa.fa-eraser
|
%i.fa.fa-eraser
|
||||||
- if @procedure.archived
|
- if @procedure.archived
|
||||||
= 'Activer'
|
= 'Réactiver'
|
||||||
- else
|
- else
|
||||||
= 'Archiver'
|
= 'Archiver'
|
||||||
#confirm
|
#confirm
|
||||||
|
@ -21,9 +25,6 @@
|
||||||
%i.fa.fa-remove
|
%i.fa.fa-remove
|
||||||
Annuler
|
Annuler
|
||||||
|
|
||||||
%h2.text-info
|
|
||||||
=@procedure.libelle
|
|
||||||
|
|
||||||
#procedure_new.section.section-label
|
#procedure_new.section.section-label
|
||||||
= form_for @procedure, url: url_for({controller: 'admin/procedures', action: :update, id: @procedure.id}) do |f|
|
= form_for @procedure, url: url_for({controller: 'admin/procedures', action: :update, id: @procedure.id}) do |f|
|
||||||
= render partial: 'informations', locals: {f: f}
|
= render partial: 'informations', locals: {f: f}
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
%h2.text-info
|
||||||
|
=@procedure.libelle
|
||||||
|
%br
|
||||||
|
|
||||||
%ul.nav.nav-tabs
|
%ul.nav.nav-tabs
|
||||||
%li
|
%li
|
||||||
= link_to('Description', admin_procedure_path(@procedure))
|
= link_to('Description', admin_procedure_path(@procedure))
|
||||||
|
|
Loading…
Reference in a new issue