toulouse: simplify custom forms_of_category & link-list-cell cells (#40883)
gitea-wip/publik-base-theme/pipeline/head There was a failure building this commit
Details
gitea-wip/publik-base-theme/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
ff1236405f
commit
18d850bd1c
|
@ -1,32 +1,7 @@
|
|||
{% load assets i18n static %}
|
||||
{% block cell-content %}
|
||||
<div class="wcs-forms-of-category-{{slug}}">
|
||||
{% extends 'combo/wcs/forms_of_category.html' %}
|
||||
|
||||
{% block cell-header %}{% endblock cell-header %}
|
||||
|
||||
{% block cell-top-content %}
|
||||
<h2><span><span>{{ title }}</span></span><i class="opener"></i></h2>
|
||||
<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 %}"
|
||||
data-keywords="{% for keyword in form.keywords %}{{ keyword }}{% endfor %}"
|
||||
><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 %}
|
||||
|
|
Loading…
Reference in New Issue