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

20 lines
765 B
Text
Raw Normal View History

- if dossier.en_construction_ou_instruction?
- if dossier_is_followed
= link_to unfollow_gestionnaire_dossier_path(procedure, dossier), method: :patch, class: 'button' do
%span.icon.unfollow>
2017-10-05 19:21:21 +02:00
Ne plus suivre
- else
= link_to follow_gestionnaire_dossier_path(procedure, dossier), method: :patch, class: 'button' do
%span.icon.follow>
2017-10-05 19:21:21 +02:00
Suivre le dossier
- elsif dossier.termine?
- if dossier.archived
= link_to unarchive_gestionnaire_dossier_path(procedure, dossier), method: :patch, class: 'button' do
%span.icon.unarchive>
2017-10-05 19:21:21 +02:00
Désarchiver le dossier
- else
= link_to archive_gestionnaire_dossier_path(procedure, dossier), method: :patch, class: 'button' do
%span.icon.archive>
2017-10-05 19:21:21 +02:00
Archiver le dossier