Commit 9b8c1a67 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

add button and confirmation to delete a website

parent 9c928de9
......@@ -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") &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.</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")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment