Projet

Général

Profil

0009-saint-chamond-adapt-style-of-new-more-items-markup-s.patch

Lauréline Guérin, 23 avril 2020 11:43

Télécharger (2,83 ko)

Voir les différences:

Subject: [PATCH 09/19] saint-chamond: adapt style of new more-items markup &
 simplify custom cell (#40883)

 static/saint-chamond/_custom.scss             |  2 +-
 .../combo/wcs/forms_of_category.html          | 31 ++-----------------
 2 files changed, 3 insertions(+), 30 deletions(-)
static/saint-chamond/_custom.scss
157 157
		background-repeat: no-repeat;
158 158
		color: $font-color;
159 159
	}
160
	li.more-items a {
160
	.add-more-items--button {
161 161
		background-image: url(img/plus.png);
162 162
		background-position: 5px 50%;
163 163
		background-repeat: no-repeat;
templates/variants/saint-chamond/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 4
{% block cell-header %}
5 5
{% get_asset "wcs:category:picture:"|add:cell.category_reference as asset %}
......
18 18
{% endif %}
19 19
{% endblock %}
20 20

  
21
<div class="wcs-forms-of-category-{{slug}} links-list">
22
<ul>
23
{% for form in forms %}
24
<li class="{% if form.authentication_required %}required-authentication{% endif %}
25
           {% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %}
26
           {% for keyword in form.keywords %}keyword-{{keyword|slugify}}{% endfor %}
27
           {% if form.redirection %}is-redirection{% endif %}"
28
  ><a href="{{ form.url }}tryauth">{{ form.title }}</a>
29
  {% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %}
30
  </li>
31
{% endfor %}
32

  
33
{% if more_forms %}
34
<li class="more-items"><a>Plus de services</a></li>
35
{% for form in more_forms %}
36
<li style="display: none" class="additional-form {% if form.authentication_required %}required-authentication{% endif %}
37
           {% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %}
38
           {% for keyword in form.keywords %}keyword-{{keyword|slugify}}{% endfor %}
39
           {% if form.redirection %}is-redirection{% endif %}"
40
  ><a href="{{ form.url }}tryauth">{{ form.title }}</a>
41
  {% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %}
42
  </li>
43
{% endfor %}
44
{% endif %}
45

  
46
</ul>
47
</div>
48
{% endblock %}
21
{% block cell-more-items-btn-label %}Plus de services{% endblock %}
49
-