demarches-normaliennes/app/views/new_gestionnaire/procedures/_dossier_actions.html.haml
2017-09-06 11:11:32 +02:00

19 lines
681 B
Text

- if dossier.en_construction_ou_instruction?
- if dossier_is_followed
= link_to unfollow_dossier_path(procedure, dossier), method: :patch, class: 'button' do
%i.unfollow>
ne plus suivre
- else
= link_to follow_dossier_path(procedure, dossier), method: :patch, class: 'button' do
%i.follow>
suivre le dossier
- elsif dossier.termine?
- if dossier.archived
= link_to unarchive_dossier_path(procedure, dossier), method: :patch, class: 'button' do
%i.unarchive>
désarchiver le dossier
- else
= link_to archive_dossier_path(procedure, dossier), method: :patch, class: 'button' do
%i.archive>
archiver le dossier