aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referentials/show.html.slim
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/referentials/show.html.slim')
-rw-r--r--app/views/referentials/show.html.slim4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/referentials/show.html.slim b/app/views/referentials/show.html.slim
index 6cc6e0ba9..f5c93129a 100644
--- a/app/views/referentials/show.html.slim
+++ b/app/views/referentials/show.html.slim
@@ -14,9 +14,9 @@
button.btn.btn-primary type='button' data-toggle='modal' data-target='#purgeModal' Purger
- if @referential.archived?
- = link_to t('actions.unarchive'), unarchive_referential_path(@referential.id), class: 'btn btn-primary'
+ = link_to t('actions.unarchive'), unarchive_referential_path(@referential.id), method: :put, class: 'btn btn-primary'
- else
- = link_to t('actions.archive'), archive_referential_path(@referential.id), class: 'btn btn-primary'
+ = link_to t('actions.archive'), archive_referential_path(@referential.id), method: :put, class: 'btn btn-primary'
= link_to t('actions.destroy'), referential_path(@referential), method: :delete, data: {confirm: t('referentials.actions.destroy_confirm')}, class: 'btn btn-primary'