From dd0965d80aa311412cc38e60b6cc7d54c0c861d1 Mon Sep 17 00:00:00 2001
From: Rosanny <rosanny.sihombing@hft-stuttgart.de>
Date: Wed, 5 May 2021 10:18:41 +0200
Subject: [PATCH] small updates & add German wordings

---
 README.md                              |  2 +-
 views/DE/account/updateInformation.pug | 23 ++++++++++++-----------
 2 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/README.md b/README.md
index 4c51fd33..1ca41b18 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
 User Account Management
 
-MLAB-481 branch should be created from this branch
\ No newline at end of file
+This is the repository of the User Account of the TransferPortal.
\ No newline at end of file
diff --git a/views/DE/account/updateInformation.pug b/views/DE/account/updateInformation.pug
index 193b8af4..3c0c875b 100644
--- a/views/DE/account/updateInformation.pug
+++ b/views/DE/account/updateInformation.pug
@@ -83,27 +83,28 @@ html(lang="de")
                             img(src="https://m4lab.hft-stuttgart.de/img/help/edit_settings.png", class="img-fluid", style="border: 1px solid gray;", alt="setting.js")
                             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.
-                    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
+                div(class="mx-4")
+                    div(class="alert alert-danger" role="alert") <h5><strong>Webseite löschen</strong></h5>
+                        p Dies wird <strong><em>#{information.name}</em></strong> sofort endgültig löschen, inklusive ihrer Repositorien und aller zugehöriger Ressourcen.
+                        p Sind Sie WIRKLICH SICHER, dass Sie diese Webseite löschen wollen? 
+                        button(type="button" class="btn btn-danger" data-toggle="modal" data-target="#deleteWebsiteConfirmation") Löschen
 
     // Modal
-    div(class="modal" id="deleteWebsiteConfirmation" tabindex="-1" role="dialog" aria-labelledby="modalLabel")
+    div(class="modal" id="deleteWebsiteConfirmation" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true")
         div(class="modal-dialog" role="document")
             div(class="modal-content")
                 div(class="modal-header")
+                    h5(class="modal-title" id="modalLabel") Sind Sie WIRKLICH SICHER?
                     button(type="button" class="close" data-dismiss="modal" aria-label="Close")
                         span(aria-hidden="true") &times;
-                    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. <strong>This action cannot be undone.</strong></p>
+                    | <p>Sie sind dabei, diese Webseite, ihr Repositorium und alle zugehörigen Ressourcen, inklusive aller Inhalte, Bilder etc. endgültig zu löschen.</p>
+                    | <p>Sobald eine Webseite endgültig gelöscht ist, kann sie nicht wiederhergestellt werden. <strong>Diese Aktion kann nicht rückgängig gemacht werden.</strong></p>
                 div(class="modal-footer")
                     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
+                        button(type="button" class="btn btn-primary mx-2" data-dismiss="modal") Abbrechen, Webseite behalten
+                        button(type="submit" class="btn btn-danger") Ja, Webseite löschen
 
     // jQuery
     script(src="https://code.jquery.com/jquery-3.3.1.min.js")
@@ -113,7 +114,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="https://m4lab.hft-stuttgart.de/js/headfoot.js")
+    script(src="/js/headfoot.js")
     script.
         function sendPublishRequest() {
             $.post("/sendPublishRequest", {projectName: $("#name").val()}, function(resp){
-- 
GitLab