0014-tours-simplify-custom-forms_of_category-cell-40883.patch
templates/variants/tours/combo/wcs/forms_of_category.html | ||
---|---|---|
1 |
{% extends 'combo/wcs/forms_of_category.html' %} |
|
1 | 2 |
{% load assets i18n %} |
2 |
{% block cell-content %} |
|
3 | ||
3 | 4 |
{% block cell-header %} |
4 | 5 |
{% get_asset "wcs:category:picture:"|add:cell.category_reference as asset %} |
5 | 6 |
<h2{% if asset %} style="background-image: url('{% asset_url asset crop="center" %}')"{% endif %}><span>{{ title }}</span></h2> |
... | ... | |
9 | 10 |
</div> |
10 | 11 |
{% endif %} |
11 | 12 |
{% endblock %} |
12 |
<div class="wcs-forms-of-category-{{slug}}"> |
|
13 |
<ul> |
|
14 |
{% for form in forms %} |
|
15 |
<li class="{% if form.authentication_required %}required-authentication{% endif %} |
|
16 |
{% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %} |
|
17 |
{% for keyword in form.keywords %}keyword-{{keyword|slugify}}{% endfor %} |
|
18 |
{% if form.redirection %}is-redirection{% endif %}" |
|
19 |
><a href="{{ form.url }}tryauth">{{ form.title }}</a> |
|
20 |
{% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %} |
|
21 |
</li> |
|
22 |
{% endfor %} |
|
23 | ||
24 |
{% if more_forms %} |
|
25 |
<li class="more-items"><a>+</a></li> |
|
26 |
{% for form in more_forms %} |
|
27 |
<li style="display: none" class="additional-form {% if form.authentication_required %}required-authentication{% endif %} |
|
28 |
{% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %} |
|
29 |
{% for keyword in form.keywords %}keyword-{{keyword|slugify}}{% endfor %} |
|
30 |
{% if form.redirection %}is-redirection{% endif %}" |
|
31 |
><a href="{{ form.url }}tryauth">{{ form.title }}</a> |
|
32 |
{% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %} |
|
33 |
</li> |
|
34 |
{% endfor %} |
|
35 |
{% endif %} |
|
36 | ||
37 |
</ul> |
|
38 |
</div> |
|
39 |
{% endblock %} |
|
40 |
- |