summaryrefslogtreecommitdiff
path: root/app/views/projects/_remove.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/_remove.html.haml')
-rw-r--r--app/views/projects/_remove.html.haml7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/projects/_remove.html.haml b/app/views/projects/_remove.html.haml
index 6c84fbfeeb3..528d802261c 100644
--- a/app/views/projects/_remove.html.haml
+++ b/app/views/projects/_remove.html.haml
@@ -4,7 +4,6 @@
%h4.danger-title= _('Remove project')
%p
%strong= _('Removing the project will delete its repository and all related resources including issues, merge requests etc.')
- = form_tag(project_path(project), method: :delete) do
- %p
- %strong= _('Removed projects cannot be restored!')
- = button_to _('Remove project'), '#', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => remove_project_message(project) }
+ %p
+ %strong= _('Removed projects cannot be restored!')
+ #js-confirm-project-remove{ data: { form_path: project_path(project), confirm_phrase: project.path, warning_message: remove_project_message(project) } }