2021-05-04 04:15:26 +02:00
|
|
|
{% extends "packages/package_base.html" %}
|
2018-05-25 19:28:24 +02:00
|
|
|
|
|
|
|
{% block title %}
|
2021-05-04 04:15:26 +02:00
|
|
|
Remove {{ package.title }}
|
2018-05-25 19:28:24 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2021-05-04 04:15:26 +02:00
|
|
|
<form method="POST" action="">
|
2021-05-04 22:52:43 +02:00
|
|
|
<h2 class="mt-0">Remove {{ package.title }}</h2>
|
2020-09-16 19:05:37 +02:00
|
|
|
<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>
|
2018-05-25 19:28:24 +02:00
|
|
|
|
2020-09-16 19:05:37 +02:00
|
|
|
{% if package.approved %}
|
|
|
|
<p>
|
2021-01-25 17:58:58 +01:00
|
|
|
Unapproving a package will put it back into Draft, where
|
2020-09-16 19:05:37 +02:00
|
|
|
it can be submitted for approval again.
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
|
|
2021-07-24 05:30:14 +02:00
|
|
|
<a class="btn btn-secondary float-right" href="{{ package.getURL("packages.view") }}">Cancel</a>
|
2020-09-16 19:05:37 +02:00
|
|
|
|
|
|
|
<input type="submit" name="delete" value="Remove" class="btn btn-danger mr-2" />
|
|
|
|
|
|
|
|
{% if package.approved %}
|
2018-12-25 16:13:30 +01:00
|
|
|
<input type="submit" name="unapprove" value="Unapprove" class="btn btn-warning" />
|
2020-09-16 19:05:37 +02:00
|
|
|
{% endif %}
|
2021-05-04 04:15:26 +02:00
|
|
|
</form>
|
2018-05-25 19:28:24 +02:00
|
|
|
{% endblock %}
|