aboutsummaryrefslogtreecommitdiff
path: root/app/templates/packages/remove.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-09-16 18:05:37 +0100
committerrubenwardy <rw@rubenwardy.com>2020-09-16 18:12:53 +0100
commit258a23cd9a36631d8794fbf9251fa5f23c975661 (patch)
tree600badfe6a709cabad9e058e78280b6ebd5d9f1c /app/templates/packages/remove.html
parent92fb54556ad0409a519c308e7e34b63e11621903 (diff)
downloadcheatdb-258a23cd9a36631d8794fbf9251fa5f23c975661.tar.xz
Allow all users to delete their packages
Diffstat (limited to 'app/templates/packages/remove.html')
-rw-r--r--app/templates/packages/remove.html36
1 files changed, 27 insertions, 9 deletions
diff --git a/app/templates/packages/remove.html b/app/templates/packages/remove.html
index fd20637..a588c34 100644
--- a/app/templates/packages/remove.html
+++ b/app/templates/packages/remove.html
@@ -1,19 +1,37 @@
{% extends "base.html" %}
{% block title %}
- Delete | {{ package.title }}
+Delete | {{ package.title }}
{% endblock %}
{% block content %}
- <form method="POST" action="" class="box box_grey ">
- <h3>Remove Package</h3>
+<form class="card mb-3" style="max-width: 40rem; margin: auto;" method="POST" action="" >
+ <h3 class="card-header">Remove {{ package.title }}</h3>
- <div class="box-body">
- <p>Deleting a package can be undone by the admin, but he'll be very annoyed!</p>
+ <div class="card-body">
+ <p>
+ In order to avoid data loss, you cannot permanently delete packages.
+ You can remove them from ContentDB, which will cause them to not be
+ visible to any users and they may be permanently deleted in the future.
+ The Admin can restore removed packages, if needed.
+ </p>
- <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
- <input type="submit" name="delete" value="Delete" class="btn btn-danger" />
+ {% if package.approved %}
+ <p>
+ Unapproving a package will put it back into Work in Progress, where
+ it can be submitted for approval again.
+ </p>
+ {% endif %}
+
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
+
+ <a class="btn btn-secondary float-right" href="{{ package.getDetailsURL() }}">Cancel</a>
+
+ <input type="submit" name="delete" value="Remove" class="btn btn-danger mr-2" />
+
+ {% if package.approved %}
<input type="submit" name="unapprove" value="Unapprove" class="btn btn-warning" />
- </div>
- </form>
+ {% endif %}
+ </div>
+</form>
{% endblock %}