0012-venissieux-adapt-style-of-new-more-items-markup-simp.patch
static/venissieux/_custom.scss | ||
---|---|---|
262 | 262 |
background: $secondary-color; |
263 | 263 |
} |
264 | 264 | |
265 |
div.wcsformsofcategorycell ul li.more-items { |
|
266 |
&::after { |
|
267 |
content: none; |
|
268 |
} |
|
269 |
} |
|
270 | ||
271 | 265 |
div#rub_service div.buttons { |
272 | 266 |
div.previous-button { |
273 | 267 |
float: left; |
templates/variants/venissieux/combo/wcs/forms_of_category.html | ||
---|---|---|
1 |
{% extends 'combo/wcs/forms_of_category.html' %} |
|
1 | 2 |
{% load assets i18n %} |
2 |
{% block cell-content %} |
|
3 |
<div class="wcs-forms-of-category-{{slug}}"> |
|
4 |
{% block cell-header %} |
|
3 | ||
4 |
{% block cell-header %}{% endblock cell-header %} |
|
5 | ||
6 |
{% block cell-top-content %} |
|
5 | 7 |
{% get_asset "wcs:category:picture:"|add:cell.category_reference as asset %} |
6 | 8 |
{% if asset %} |
7 | 9 |
<picture> |
... | ... | |
14 | 16 |
{{ description|safe }} |
15 | 17 |
</div> |
16 | 18 |
{% endif %} |
17 |
{% endblock %} |
|
18 |
<ul> |
|
19 |
{% for form in forms %} |
|
20 |
<li class="{% if form.authentication_required %}required-authentication{% endif %} |
|
21 |
{% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %} |
|
22 |
{% for keyword in form.keywords %}keyword-{{keyword|slugify}}{% endfor %} |
|
23 |
{% if form.redirection %}is-redirection{% endif %}" |
|
24 |
><a href="{{ form.url }}tryauth">{{ form.title }}</a> |
|
25 |
{% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %} |
|
26 |
</li> |
|
27 |
{% endfor %} |
|
28 | ||
29 |
{% if more_forms %} |
|
30 |
<li class="more-items"><a>+</a></li> |
|
31 |
{% for form in more_forms %} |
|
32 |
<li style="display: none" class="additional-form {% if form.authentication_required %}required-authentication{% endif %} |
|
33 |
{% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %} |
|
34 |
{% for keyword in form.keywords %}keyword-{{keyword|slugify}}{% endfor %} |
|
35 |
{% if form.redirection %}is-redirection{% endif %}" |
|
36 |
><a href="{{ form.url }}tryauth">{{ form.title }}</a> |
|
37 |
{% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %} |
|
38 |
</li> |
|
39 |
{% endfor %} |
|
40 |
{% endif %} |
|
41 | ||
42 |
</ul> |
|
43 |
</div> |
|
44 |
{% endblock %} |
|
19 |
{% endblock cell-top-content %} |
|
45 |
- |