contentdb/app/templates/packages/remove.html

38 lines
1.1 KiB
HTML
Raw Normal View History

2018-05-25 19:28:24 +02:00
{% extends "base.html" %}
{% block title %}
Delete | {{ package.title }}
2018-05-25 19:28:24 +02:00
{% endblock %}
{% block content %}
<form class="card mb-3" style="max-width: 40rem; margin: auto;" method="POST" action="" >
<h3 class="card-header">Remove {{ package.title }}</h3>
2018-05-25 19:28:24 +02:00
<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>
2018-05-25 19:28:24 +02:00
{% if package.approved %}
<p>
Unapproving a package will put it back into Draft, 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" />
{% endif %}
</div>
</form>
2018-05-25 19:28:24 +02:00
{% endblock %}