diff options
| author | jpl | 2016-11-21 12:01:06 +0100 |
|---|---|---|
| committer | jpl | 2016-11-21 12:01:13 +0100 |
| commit | 0c05eb7e70644d5358896c55ed2e993bf379f584 (patch) | |
| tree | b4aa6b0f21f086d1fdcb36b8f512c217c183fa2c | |
| parent | d8261fa2332f0251d15aaf11403f8ffc6032f3bd (diff) | |
| download | chouette-core-0c05eb7e70644d5358896c55ed2e993bf379f584.tar.bz2 | |
Refs #2004: disabled link for unarchive impossible actions on workbench#show
| -rw-r--r-- | app/views/workbenches/show.html.slim | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/workbenches/show.html.slim b/app/views/workbenches/show.html.slim index 2f9937452..a979d85f8 100644 --- a/app/views/workbenches/show.html.slim +++ b/app/views/workbenches/show.html.slim @@ -55,14 +55,14 @@ li = link_to "Cloner", new_referential_path(from: referential) - li - - if referential.archived? - - if referential.can_unarchive? - = link_to "Désarchiver", unarchive_referential_path(referential), method: :put - - else - = link_to "Désarchiver", "#" + - if referential.archived? + - if referential.can_unarchive? + li = link_to "Désarchiver", unarchive_referential_path(referential), method: :put - else - = link_to "Archiver", archive_referential_path(referential), method: :put + li.disabled title="L'action est impossible pour ce référentiel" + = link_to "Désarchiver", "#" + - else + li = link_to "Archiver", archive_referential_path(referential), method: :put li = link_to "Supprimer", referential_path(referential), method: :delete, :data => {:confirm => t('referentials.actions.destroy_confirm')} |
