demarches-normaliennes/app/views/new_gestionnaire/procedures/_dossier_actions.html.haml

20 lines
693 B
Text
Raw Normal View History

- if dossier.en_construction_ou_instruction?
- if dossier_is_followed
= link_to unfollow_dossier_path(procedure, dossier), method: :patch, class: 'button' do
2017-10-16 18:29:40 +02:00
.icon.unfollow>
2017-10-05 19:21:21 +02:00
Ne plus suivre
- else
= link_to follow_dossier_path(procedure, dossier), method: :patch, class: 'button' do
2017-10-16 18:29:40 +02:00
.icon.follow>
2017-10-05 19:21:21 +02:00
Suivre le dossier
- elsif dossier.termine?
- if dossier.archived
= link_to unarchive_dossier_path(procedure, dossier), method: :patch, class: 'button' do
2017-10-16 18:29:40 +02:00
.icon.unarchive>
2017-10-05 19:21:21 +02:00
Désarchiver le dossier
- else
= link_to archive_dossier_path(procedure, dossier), method: :patch, class: 'button' do
2017-10-16 18:29:40 +02:00
.icon.archive>
2017-10-05 19:21:21 +02:00
Archiver le dossier