47 lines
1.6 KiB
HTML
47 lines
1.6 KiB
HTML
{% load assets i18n %}
|
|
{% block cell-content %}
|
|
|
|
{% block cell-header %}
|
|
<h2>{{ title }}</h2>
|
|
{% get_asset "wcs:category:picture:"|add:cell.category_reference as asset %}
|
|
{% if asset %}
|
|
<picture>
|
|
<img src="{% asset_url asset size="660x360" crop="center" %}" alt="">
|
|
</picture>
|
|
{% endif %}
|
|
{% if description %}
|
|
<div class="intro">
|
|
{{ description|safe }}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
<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 %}
|
|
|
|
{% if more_forms %}
|
|
<li class="more-items"><a>+</a></li>
|
|
{% for form in more_forms %}
|
|
<li style="display: none" 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>
|
|
{% endblock %}
|