]> git.lizzy.rs Git - cheatdb.git/blob - app/templates/packages/remove.html
Allow all users to delete their packages
[cheatdb.git] / app / templates / packages / remove.html
1 {% extends "base.html" %}
2
3 {% block title %}
4 Delete | {{ package.title }}
5 {% endblock %}
6
7 {% block content %}
8 <form class="card mb-3" style="max-width: 40rem; margin: auto;" method="POST" action="" >
9         <h3 class="card-header">Remove {{ package.title }}</h3>
10
11         <div class="card-body">
12                 <p>
13                         In order to avoid data loss, you cannot permanently delete packages.
14                         You can remove them from ContentDB, which will cause them to not be
15                         visible to any users and they may be permanently deleted in the future.
16                         The Admin can restore removed packages, if needed.
17                 </p>
18
19                 {% if package.approved %}
20                         <p>
21                                 Unapproving a package will put it back into Work in Progress, where
22                                 it can be submitted for approval again.
23                         </p>
24                 {% endif %}
25
26                 <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
27
28                 <a class="btn btn-secondary float-right" href="{{ package.getDetailsURL() }}">Cancel</a>
29
30                 <input type="submit" name="delete" value="Remove" class="btn btn-danger mr-2" />
31
32                 {% if package.approved %}
33                         <input type="submit" name="unapprove" value="Unapprove" class="btn btn-warning" />
34                 {% endif %}
35         </div>
36 </form>
37 {% endblock %}