mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
51 lines
1.6 KiB
HTML
51 lines
1.6 KiB
HTML
{% extends "packages/package_base.html" %}
|
|
|
|
{% block title %}
|
|
Remove {{ package.title }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<form method="POST" action="">
|
|
<h2 class="mt-0">{{ _("Remove %(title)s", title=package.title) }}</h2>
|
|
<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>
|
|
|
|
{% 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() }}" />
|
|
|
|
<div class="form-group mb-3">
|
|
<label for="reason" class="form-label">{{ _("Reason") }}</label>
|
|
<span class="ms-1 text-danger">
|
|
<small>
|
|
<i class="fas fa-asterisk"></i>
|
|
</small>
|
|
</span>
|
|
<span class="ms-3 text-muted">
|
|
{{ _("Required") }}
|
|
</span>
|
|
<input id="reason" class="form-control" type="text" name="reason" required minlength="5">
|
|
<small class="form-text text-muted">
|
|
{{ _("Reason for unapproval / deletion, this is shown in the audit log") }}
|
|
</small>
|
|
</div>
|
|
|
|
<a class="btn btn-secondary float-end" href="{{ package.get_url('packages.view') }}">{{ _("Cancel") }}</a>
|
|
|
|
<input type="submit" name="delete" value="{{ _('Remove') }}" class="btn btn-danger me-2" />
|
|
|
|
{% if package.approved %}
|
|
<input type="submit" name="unapprove" value="{{ _('Unapprove') }}" class="btn btn-warning" />
|
|
{% endif %}
|
|
</form>
|
|
{% endblock %}
|