demarches-normaliennes/app/views/admin/change_dossier_state/check.html.haml

18 lines
472 B
Text
Raw Normal View History

2017-01-10 17:29:38 +01:00
.center
%h2 Outil de changement d'état d'un dossier
= form_for @dossier, url: 'change_dossier_state', action: :put do |f|
Dossier ID :
= @dossier.id
= f.hidden_field :id
%br
État :
= @dossier.decorate.display_state
%br
État souhaité :
%select{id: :next_state, name: :next_state}
- Dossier.states.each do |state|
%option{value: state[0]}
=DossierDecorator.case_state_fr state[1]
2017-04-04 15:27:04 +02:00
= f.submit 'Valider'