40 lines
1.6 KiB
HTML
40 lines
1.6 KiB
HTML
{% load assets i18n static %}
|
|
{% block cell-content %}
|
|
<div class="wcs-forms-of-category-{{slug}}">
|
|
<picture>
|
|
<img src="{% asset_url "wcs:category:picture:eservices:"|add:slug %}" alt="">
|
|
</picture>
|
|
<h2 style="background-image: url({% asset_url "wcs:category:logo:eservices:"|add:slug size="65x65" %})"><span>{{ title }}</span></h2>
|
|
{% if description %}
|
|
<div class="intro">
|
|
{{ description|safe }}
|
|
</div>
|
|
{% endif %}
|
|
<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 %}
|