demarches-normaliennes/app/views/admin/procedures/show.html.haml

33 lines
1.1 KiB
Text
Raw Normal View History

%h2.text-info
=@procedure.libelle
%br
%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))
2015-11-26 18:41:41 +01:00
%li{style:'float:right'}
= 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
- if @procedure.archived
= 'Réactiver'
- 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-10-26 15:54:20 +01:00
#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}
= f.submit 'Editer', class: 'btn btn-success', style: 'float:right'
%br
%br