summaryrefslogtreecommitdiffstats
path: root/templates/variants/fontenay-sous-bois-2018/combo/wcs/forms_of_category.html
blob: eafbfa25cd2e14383b74dab19a15e58fb40ce7b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% load assets i18n static %}
{% block cell-content %}
<div class="wcs-forms-of-category-{{slug}}">
<picture>
<img src="{% asset_url "wcs:category:picture:"|add:cell.category_reference size="265x174" crop="center" %}" alt="">
</picture>
<h2 style="background-image: url({% asset_url "wcs:category:logo:"|add:cell.category_reference 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 %}