Add tool change dossier state
This commit is contained in:
parent
04ee25dc7d
commit
bc71754e87
5 changed files with 58 additions and 0 deletions
16
app/views/admin/change_dossier_state/change.html.haml
Normal file
16
app/views/admin/change_dossier_state/change.html.haml
Normal file
|
@ -0,0 +1,16 @@
|
|||
.center
|
||||
%h2 Outil de changement d'état d'un dossier
|
||||
|
||||
%h4.text-success
|
||||
Changement effectué
|
||||
|
||||
= form_for @dossier, url: 'change_dossier_state', action: :put do |f|
|
||||
Dossier ID :
|
||||
= @dossier.id
|
||||
%br
|
||||
État :
|
||||
= @dossier.decorate.display_state
|
||||
|
||||
%br
|
||||
%br
|
||||
= link_to 'Réaliser un autre dossier', 'change_dossier_state'
|
17
app/views/admin/change_dossier_state/check.html.haml
Normal file
17
app/views/admin/change_dossier_state/check.html.haml
Normal file
|
@ -0,0 +1,17 @@
|
|||
.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]
|
||||
= f.submit 'Valider'
|
7
app/views/admin/change_dossier_state/index.html.haml
Normal file
7
app/views/admin/change_dossier_state/index.html.haml
Normal file
|
@ -0,0 +1,7 @@
|
|||
.center
|
||||
%h2 Outil de changement d'état d'un dossier
|
||||
|
||||
= form_for @dossier, url: 'change_dossier_state', action: :post do |f|
|
||||
Dossier ID
|
||||
= f.text_field :id
|
||||
= f.submit 'Vérifier état'
|
Loading…
Add table
Add a link
Reference in a new issue