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

18 lines
477 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é :
2017-04-06 19:10:25 +02:00
%select{ id: :next_state, name: :next_state }
2017-01-10 17:29:38 +01:00
- Dossier.states.each do |state|
2017-04-06 19:10:25 +02:00
%option{ value: state[0] }
= DossierDecorator.case_state_fr state[1]
2017-04-04 15:27:04 +02:00
= f.submit 'Valider'