venissieux: adapt style of new more-items markup & simplify custom cell (#40883)

This commit is contained in:
Thomas Jund 2020-04-22 15:41:14 +02:00 committed by Lauréline Guérin
parent b47649418e
commit 2fb798772c
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
2 changed files with 6 additions and 37 deletions

View File

@ -262,12 +262,6 @@ div.meetings_table span.selectable.on {
background: $secondary-color;
}
div.wcsformsofcategorycell ul li.more-items {
&::after {
content: none;
}
}
div#rub_service div.buttons {
div.previous-button {
float: left;

View File

@ -1,7 +1,9 @@
{% extends 'combo/wcs/forms_of_category.html' %}
{% load assets i18n %}
{% block cell-content %}
<div class="wcs-forms-of-category-{{slug}}">
{% block cell-header %}
{% block cell-header %}{% endblock cell-header %}
{% block cell-top-content %}
{% get_asset "wcs:category:picture:"|add:cell.category_reference as asset %}
{% if asset %}
<picture>
@ -14,31 +16,4 @@
{{ description|safe }}
</div>
{% endif %}
{% endblock %}
<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 %}
{% endblock cell-top-content %}