Commit 83bf3ffa authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

update delete section

parent 9b8c1a67
......@@ -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){
......
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