This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
veridic/acs/templates/list_any.html

45 lines
1.3 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% block content %}
{% if title %}
<h2>{{ title }}</h2>
{% else %}
<h2>{% trans "Modify or delete" %}</h2>
{% endif %}
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% if list_any %}
<ul>
{% for any in list_any %}
<li class="bigbutton"><p>
<a class="bigbutton" href='/mod_{{ type_entity }}?{{ type_entity }}={{ any.id }}'>{{ any.name }}</a>
<!--<form method="post" action="/mod_{{ type_entity }}">
<input type="hidden" name="id" value="{{ any.id }}"/>
<input type="hidden" name="from_list" value="from_list"/>
<input type="submit" name="Modify" value="{% trans "Modify" %}"/>
</form>-->
<form method="post" action="/del_any">
{% if back_url %}<input type="hidden" name="back_url" value="{{ back_url }}"/>{% endif %}
<input type="hidden" name="type_entity" value="{{ type_entity }}"/>
<input type="hidden" name="id" value="{{ any.id }}"/>
<input type="submit" name="Delete" value="{% trans "Delete" %}"/>
</form>
</p></li>
{% endfor %}
</ul>
{% endif %}
<div class="right">
<a class="back" href="{{ backlink }}">{% trans "Back" %}</a>
</div>
{% endblock %}