lib.itmens/catalog/templates/catalog_delete.html

55 lines
1.9 KiB
HTML
Raw Normal View History

2024-04-07 19:44:37 -04:00
{% load static %}
{% load i18n %}
{% load l10n %}
{% load mastodon %}
{% load thumb %}
2025-02-06 19:17:53 +00:00
{% get_current_language as LANGUAGE_CODE %}
2024-04-07 19:44:37 -04:00
<!DOCTYPE html>
2025-02-06 19:17:53 +00:00
<html lang="{{ LANGUAGE_CODE }}">
2024-04-07 19:44:37 -04:00
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2024-05-20 23:17:47 -04:00
<title>{{ site_name }} - {% trans 'Delete' %}</title>
2024-04-07 19:44:37 -04:00
{% include "common_libs.html" %}
{% if url %}<meta http-equiv="refresh" content="3;url={{ url }}">{% endif %}
</head>
<body>
{% include "_header.html" %}
<main class="container">
<h2>{% trans 'Are you sure to delete?' %}</h2>
<div>
<article class="item-card deleting">{% include "_item_card.html" with item=item %}</article>
{% if item.is_deleted %}
<p>
2024-05-20 23:17:47 -04:00
<i class="fa-solid fa-circle-xmark"></i> {% trans "Item has been deleted." %}
2024-04-07 19:44:37 -04:00
</p>
{% endif %}
{% if item.child_items %}
<p>
2024-05-20 23:17:47 -04:00
<i class="fa-solid fa-circle-exclamation"></i> {% trans "Item contains sub-items." %}
2024-04-07 19:44:37 -04:00
</p>
{% endif %}
{% if item.merged_to_item %}
<p>
2024-05-20 23:17:47 -04:00
<i class="fa-solid fa-circle-xmark"></i> {% trans "Item has been merged to another item." %}
2024-04-07 19:44:37 -04:00
</p>
{% endif %}
{% if item.journal_exists %}
<p>
2024-05-20 23:17:47 -04:00
<i class="fa-solid fa-circle-exclamation"></i> {% trans "Item has been marked by users." %}
2024-04-07 19:44:37 -04:00
</p>
{% endif %}
</div>
<form method="post"
action="{% url 'catalog:delete' item.url_path item.uuid %}"
2024-05-20 23:17:47 -04:00
onsubmit="return confirm('{% trans "This operation cannot be undone. Sure to delete?" %}');">
2024-04-07 19:44:37 -04:00
{% csrf_token %}
<input type="hidden" name="sure" value="1">
<input type="submit" value="{% trans 'Yes' %}">
<input type="reset" value="{% trans 'No' %}" onclick="history.go(-1)">
</form>
</main>
{% include "_footer.html" %}
</body>
</html>