44 lines
1.4 KiB
HTML
44 lines
1.4 KiB
HTML
{% extends 'combo/page_template.html' %}
|
|
{% load assets combo i18n %}
|
|
|
|
{% block header-title %}
|
|
{{ block.super }}
|
|
|
|
{% if code_postal_commune %}
|
|
{% with cards|objects:"commune-1"|filter_by:"code_postal"|filter_value:code_postal_commune|include_fields|first|get:"fields" as commune_card %}
|
|
{% with commune_card|get:'banner' as banner %}
|
|
{% if banner %}
|
|
<style>
|
|
:root {
|
|
--banner-url: url('{% make_public_url banner.url %}');
|
|
}
|
|
</style>
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% if commune_card.logocommune %}
|
|
<div class="logo-commune">
|
|
<a class="logo-commune--link" href="{{ commune_card.urlsitecommune }}" title="Aller sur le portail de {{ commune_card.nomcommune }}">
|
|
<img class="logo-commune--img" src="{% make_public_url commune_card.logocommune.url %}" alt="{{ commune_card.nomcommune }}">
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block before-main-content %}
|
|
{{ block.super }}
|
|
{% if banner_background %}
|
|
<div class="banner"></div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block footer-post %}
|
|
<div class="orange-footer-wrapper">
|
|
<div class="orange-footer page-width">
|
|
{% placeholder "orange-footer" acquired=True name="Pied de page orange" optional=True %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|