Add procedure libelle on all edit page, above tabs

This commit is contained in:
Xavier J 2015-11-27 17:25:22 +01:00
parent a6244cebb1
commit 6dd9c0c7ce
3 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,7 @@
%h2.text-info
=@procedure.libelle
%br
%ul.nav.nav-tabs
%li= link_to('Description', admin_procedure_path(@procedure))
%li= link_to('Champs', admin_procedure_types_de_champ_path(@procedure))

View file

@ -1,3 +1,7 @@
%h2.text-info
=@procedure.libelle
%br
%ul.nav.nav-tabs
%li.active
= link_to('Description', admin_procedure_path(@procedure))
@ -10,7 +14,7 @@
%button#archive.btn.btn-nav.text-info{type: :button}
%i.fa.fa-eraser
- if @procedure.archived
= 'Activer'
= 'Réactiver'
- else
= 'Archiver'
#confirm
@ -21,9 +25,6 @@
%i.fa.fa-remove
Annuler
%h2.text-info
=@procedure.libelle
#procedure_new.section.section-label
= form_for @procedure, url: url_for({controller: 'admin/procedures', action: :update, id: @procedure.id}) do |f|
= render partial: 'informations', locals: {f: f}

View file

@ -1,3 +1,7 @@
%h2.text-info
=@procedure.libelle
%br
%ul.nav.nav-tabs
%li
= link_to('Description', admin_procedure_path(@procedure))