From 9b8c1a672d339d14667e014cfcc0528cd681ac2c Mon Sep 17 00:00:00 2001 From: Rosanny <rosanny.sihombing@hft-stuttgart.de> Date: Fri, 30 Apr 2021 14:08:00 +0200 Subject: [PATCH] add button and confirmation to delete a website --- views/DE/account/updateInformation.pug | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/views/DE/account/updateInformation.pug b/views/DE/account/updateInformation.pug index acd0a143..dc8c609a 100644 --- a/views/DE/account/updateInformation.pug +++ b/views/DE/account/updateInformation.pug @@ -82,6 +82,27 @@ html(lang="de") div(class="card-body") Passen Sie die Werte für projektname und projektseitenlink an, indem Sie die entsprechenden Werte in die Anführungszeichen schreiben. 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, including issues, merge requests, etc. + 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 + + // Modal + div(class="modal" id="deleteWebsiteConfirmation" tabindex="-1" role="dialog" aria-labelledby="modalLabel") + div(class="modal-dialog" role="document") + div(class="modal-content") + div(class="modal-header") + button(type="button" class="close" data-dismiss="modal" aria-label="Close") + span(aria-hidden="true") × + 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> + 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 // jQuery script(src="https://code.jquery.com/jquery-3.3.1.min.js") -- GitLab