60 lines
2.4 KiB
HTML
60 lines
2.4 KiB
HTML
{% extends "chrono/manager_base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block breadcrumb %}
|
|
{{ block.super }}
|
|
<a href="{% url 'chrono-manager-check-type-list' %}">{% trans "Check types" %}</a>
|
|
{% endblock %}
|
|
|
|
{% block appbar %}
|
|
<h2>{% trans 'Check types' %}</h2>
|
|
<span class="actions">
|
|
<a rel="popup" href="{% url 'chrono-manager-check-type-group-add' %}">{% trans 'New group' %}</a>
|
|
</span>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="pk-information">
|
|
<p>{% trans "Define here check types used in events agendas to check bookings." %}</p>
|
|
</div>
|
|
{% for object in object_list %}
|
|
<div class="section check-type-group">
|
|
<h3>
|
|
<a rel="popup" href="{% url 'chrono-manager-check-type-group-edit' object.pk %}">{{ object }}</a>
|
|
<span>
|
|
<a class="button" href="{% url 'chrono-manager-check-type-group-export' object.pk %}">{% trans "Export"%}</a>
|
|
<a class="button" rel="popup" href="{% url 'chrono-manager-check-type-group-delete' object.pk %}">{% trans "Delete"%}</a>
|
|
</span>
|
|
</h3>
|
|
<div>
|
|
<ul class="objects-list single-links">
|
|
{% for check_type in object.check_types.all %}
|
|
{% if check_type.kind == 'absence' %}
|
|
<li>
|
|
<a rel="popup" href="{% url 'chrono-manager-check-type-edit' object.pk check_type.pk %}">{% trans "Absence" %} - {{ check_type }}{% if check_type.disabled %}<span class="extra-info"> ({% trans "disabled" %})</span>{% endif %}</a>
|
|
<a class="delete" rel="popup" href="{% url 'chrono-manager-check-type-delete' object.pk check_type.pk %}">{% trans "delete"%}</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% for check_type in object.check_types.all %}
|
|
{% if check_type.kind == 'presence' %}
|
|
<li>
|
|
<a rel="popup" href="{% url 'chrono-manager-check-type-edit' object.pk check_type.pk %}">{% trans "Presence" %} - {{ check_type }}{% if check_type.disabled %}<span class="extra-info"> ({% trans "disabled" %})</span>{% endif %}</a>
|
|
<a class="delete" rel="popup" href="{% url 'chrono-manager-check-type-delete' object.pk check_type.pk %}">{% trans "delete"%}</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<li><a class="add" rel="popup" href="{% url 'chrono-manager-check-type-add' object.pk %}">{% trans "Add a check type" %}</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% empty %}
|
|
<div class="big-msg-info">
|
|
{% blocktrans %}
|
|
This site doesn't have any check type group yet. Click on the "New group" button in the top
|
|
right of the page to add a first one.
|
|
{% endblocktrans %}
|
|
</div>
|
|
{% endfor %}
|
|
{% endblock %}
|