demarches-normaliennes/app/views/admin/procedures/show.html.haml
2015-11-26 18:41:41 +01:00

29 lines
No EOL
1 KiB
Text

%ul.nav.nav-tabs
%li.active
= link_to('Description', admin_procedure_path(@procedure))
%li
= link_to('Champs', admin_procedure_types_de_champ_path(@procedure))
%li
= link_to('Pièces justificatives', admin_procedure_pieces_justificatives_path(@procedure))
%li{style:'float:right'}
= form_tag "/admin/procedures/#{@procedure.id}/archive", action: :archive, method: :put, procedure_id: @procedure.id do
%button#archive.btn.btn-nav.text-info{type: :button}
%i.fa.fa-eraser
Archiver
#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
%h2.text-info
=@procedure.libelle
#procedure_new.section.section-label
= form_for @procedure, url: {controller: 'admin/procedures', action: :update} do |f|
=render partial: 'informations', locals: {f: f}
=f.submit 'Editer', class: 'btn btn-success', style: 'float:right'
%br
%br