From 83bf3ffa22e97def63e3212f39691e7ebe008c01 Mon Sep 17 00:00:00 2001
From: Rosanny <rosanny.sihombing@hft-stuttgart.de>
Date: Fri, 30 Apr 2021 17:29:18 +0200
Subject: [PATCH] update delete section

---
 views/DE/account/updateInformation.pug | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/views/DE/account/updateInformation.pug b/views/DE/account/updateInformation.pug
index dc8c609a..193b8af4 100644
--- a/views/DE/account/updateInformation.pug
+++ b/views/DE/account/updateInformation.pug
@@ -84,7 +84,7 @@ html(lang="de")
                             p Klicken Sie anschließend auf <i>commit changes</i>, um die Änderungen zu speichern.
                 hr
                 div(class="alert alert-danger" role="alert") <h5><strong>Delete Website</strong></h5>
-                    p This action will permanently delete <strong><em>#{information.name}</em></strong> immediately, including its repositories and all related resources, including issues, merge requests, etc.
+                    p This action will permanently delete <strong><em>#{information.name}</em></strong> immediately, including its repositories and all related resources.
                     p Are you ABSOLUTELY SURE you wish to delete this website? 
                     button(type="button" class="btn btn-danger mx-2" data-toggle="modal" data-target="#deleteWebsiteConfirmation") Löschen
 
@@ -98,11 +98,12 @@ html(lang="de")
                     h4(class="modal-title" id="modalLabel") Are you ABSOLUTELY SURE?
                 div(class="modal-body")
                     | <p>You are about to permanently delete this website, its repository and all related resources, including content, images, etc.</p>
-                    | <p>Once a website is permanently deleted, it cannot be recovered.</p>
-                    | <p>This action cannot be undone.</p>
+                    | <p>Once a website is permanently deleted, it cannot be recovered. <strong>This action cannot be undone.</strong></p>
                 div(class="modal-footer")
-                    button(type="button" class="btn btn-primary" data-dismiss="modal") Abbrechen, keep website
-                    button(type="button" class="btn btn-danger") Ja, delete website
+                    form(method="POST", action="/deleteProject?_method=DELETE", encType="multipart/form-data")
+                        input(name="id", value=information.id, type="hidden")
+                        button(type="button" class="btn btn-primary" data-dismiss="modal") Abbrechen, keep website
+                        button(type="submit" class="btn btn-danger") Ja, delete website
 
     // jQuery
     script(src="https://code.jquery.com/jquery-3.3.1.min.js")
@@ -112,7 +113,7 @@ html(lang="de")
     // Bootstrap
     script(src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous")
     // M4_LAB
-    script(src="/js/headfoot.js")
+    script(src="https://m4lab.hft-stuttgart.de/js/headfoot.js")
     script.
         function sendPublishRequest() {
             $.post("/sendPublishRequest", {projectName: $("#name").val()}, function(resp){
-- 
GitLab