eurelien-cd28-2022: Show form title under page header (#71798)

This commit is contained in:
Corentin Sechet 2022-12-05 13:11:31 +01:00 committed by Gitea
parent 39c3ad24b2
commit 7410df8605
2 changed files with 8 additions and 12 deletions

View File

@ -8,6 +8,10 @@
border-radius: $border-radius;
margin-bottom: $space-large;
}
&--title {
@extend h3;
}
}
div#tracking-code {

View File

@ -4,20 +4,12 @@
<div class="cd28-page-header--wcs-default">
{% if title %}
{% with title|split:" " as title_elements %}
{% if title_elements|length > 1 %}
<h1>
<span class="cd28-title-header">{{ title_elements|first }}</span>
{{ title_elements|slice:"1:"|join:" " }}
</h1>
{% else %}
<h1>{{ title }}</h1>
{% endif %}
<h1>
<span class="cd28-title-header">Les</span>
d&eacute;marches
</h1>
{% endwith %}
{% if view.formdef.description %}
{{ view.formdef.description | safe }}
{% endif %}
{% endif %}
</div>
{% endblock %}
{% block wcs-form-title %}{% endblock %}