48 lines
1.8 KiB
HTML
48 lines
1.8 KiB
HTML
{% load assets i18n %}
|
|
{% block cell-content %}
|
|
|
|
{% block cell-header %}
|
|
{% if forms or combo_display_even_empty_categories %}
|
|
<h2>{{ title }}</h2>
|
|
{% include "combo/asset_picture_fragment.html" %}
|
|
{% if description %}
|
|
<div class="intro">
|
|
{{ description|safe }}
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% if forms or combo_display_even_empty_categories %}
|
|
<div class="wcs-forms-of-category-{{slug}}">
|
|
<ul>
|
|
{% for form in forms %}
|
|
<li class="{% if form.authentication_required %}required-authentication{% endif %}
|
|
{% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %}
|
|
{% for keyword in form.keywords %}keyword-{{keyword|slugify}} {% endfor %}
|
|
{% if form.redirection %}is-redirection{% endif %}"
|
|
><a href="{{ form.url }}tryauth">{{ form.title }}</a>
|
|
{% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
{% if more_forms %}
|
|
<button aria-expanded="false" aria-controls="wcs-more-forms-of-category-{{ cell.get_reference }}" aria-label="{% trans 'More forms' %}" class="more-items">+</button>
|
|
<ul style="display: none" class="additional-forms" id="wcs-more-forms-of-category-{{ cell.get_reference }}">
|
|
{% for form in more_forms %}
|
|
<li class="additional-form {% if form.authentication_required %}required-authentication{% endif %}
|
|
{% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %}
|
|
{% for keyword in form.keywords %}keyword-{{keyword|slugify}} {% endfor %}
|
|
{% if form.redirection %}is-redirection{% endif %}"
|
|
><a href="{{ form.url }}tryauth">{{ form.title }}</a>
|
|
{% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|