2015-11-27 17:25:22 +01:00
|
|
|
%h2.text-info
|
|
|
|
=@procedure.libelle
|
|
|
|
%br
|
|
|
|
|
2015-11-16 16:16:08 +01:00
|
|
|
%ul.nav.nav-tabs
|
|
|
|
%li.active
|
|
|
|
= link_to('Description', admin_procedure_path(@procedure))
|
|
|
|
%li
|
2015-11-17 10:23:05 +01:00
|
|
|
= link_to('Champs', admin_procedure_types_de_champ_path(@procedure))
|
2015-11-16 16:16:08 +01:00
|
|
|
%li
|
2015-11-20 13:54:08 +01:00
|
|
|
= link_to('Pièces justificatives', admin_procedure_pieces_justificatives_path(@procedure))
|
2015-11-26 18:41:41 +01:00
|
|
|
%li{style:'float:right'}
|
2015-11-27 17:13:06 +01:00
|
|
|
= form_tag admin_procedure_archive_path(procedure_id: @procedure.id, archive: !@procedure.archived?), method: :put do
|
2015-11-26 18:41:41 +01:00
|
|
|
%button#archive.btn.btn-nav.text-info{type: :button}
|
|
|
|
%i.fa.fa-eraser
|
2015-11-27 17:13:06 +01:00
|
|
|
- if @procedure.archived
|
2015-11-27 17:25:22 +01:00
|
|
|
= 'Réactiver'
|
2015-11-27 17:13:06 +01:00
|
|
|
- else
|
|
|
|
= 'Archiver'
|
2015-11-26 18:41:41 +01:00
|
|
|
#confirm
|
|
|
|
%button#valid.btn.btn-nav.text-success{type: :submit}
|
|
|
|
%i.fa.fa-check
|
|
|
|
Valider
|
|
|
|
%button#cancel.btn.btn-nav.text-danger{type: :button}
|
|
|
|
%i.fa.fa-remove
|
|
|
|
Annuler
|
2015-11-16 16:16:08 +01:00
|
|
|
|
2015-10-26 15:54:20 +01:00
|
|
|
#procedure_new.section.section-label
|
2015-11-27 17:13:06 +01:00
|
|
|
= form_for @procedure, url: url_for({controller: 'admin/procedures', action: :update, id: @procedure.id}) do |f|
|
|
|
|
= render partial: 'informations', locals: {f: f}
|
|
|
|
= f.submit 'Editer', class: 'btn btn-success', style: 'float:right'
|
2015-10-27 17:31:08 +01:00
|
|
|
%br
|
|
|
|
%br
|