toodego: add collectivity logo to header (#35333)

This commit is contained in:
Frédéric Péters 2019-09-16 16:05:05 +02:00
parent e58fc6e238
commit c066091aaf
2 changed files with 16 additions and 1 deletions

View File

@ -443,6 +443,17 @@ div.banner + div div#content div#tracking-code {
font-weight: bold;
background-size: cover;
text-shadow: 0 0 2px black;
span.commune {
background: transparent center center no-repeat;
background-size: 72px 72px;
position: absolute;
display: block;
top: 124px / 2 - (72px / 2);
left: 1rem;
width: 72px;
height: 72px;
border-radius: 36px;
}
}
form div.page > h3 {
padding-top: 30px;

View File

@ -36,7 +36,11 @@
{% block placeholder-content %}
{% block content %}
<div id="rub_service">
{% if title %}<h2 style="background-image: url({{portal_url}}assets/wcs:form:picture:banner:eservices:{{form_slug}})">{{ title }}</h2>{% endif %}
{% if title %}<h2 style="background-image: url({{portal_url}}assets/wcs:form:picture:banner:eservices:{{form_slug}})">{{ title }}
{% if global_context.form_var_commune %}<span class="commune"
style="background-image: url({{portal_url}}assets/logo:{{ global_context.form_var_commune|slugify }})"
></span>{% endif %}
</h2>{% endif %}
{% block body %}
{{ body|safe }}
{% endblock %}