Browse Source

feat(weo): amélioration basique du resume block

master
François Poulain 4 years ago committed by François Poulain
parent
commit
29fb3bc880
  1. 35
      weo/templates/default/blocks/_resumeblock.html

35
weo/templates/default/blocks/_resumeblock.html

@ -1,18 +1,29 @@ @@ -1,18 +1,29 @@
{% extends "./_baseblock.html" %}
{% load wagtailcore_tags %}
{% load wagtailimages_tags %}
{% block interieur %}
<div style="text-align:center; padding-bottom: {% block ratio %}75%{% endblock %};">
<div style="vertical-align:center;font-size:26px">
{% block titre %}
{% endblock %}
<div style="text-align:center;display:flex;flex-direction:column;">
<div style="font-size:26px;display:block">
{% block titre %}
{% endblock %}
</div>
{% if value.page and value.page.image_en_tete %}
{% image value.page.image_en_tete max-1000x1000 style="width:100%;height:100%;" %}
{% else %}
<div style="padding-bottom: {% block ratio %}35%{% endblock %};">
</div>
{% endif %}
<div style="text-align:center; vertical-align: center;display:block">
{% block contenu %}
{% endblock %}
</div>
{% if value.page and value.page.image_en_tete %}{% else %}
<div style="padding-bottom: {% block ratio2 %}30%{% endblock %};">
</div>
{% endif %}
<div style="text-align:right; margin-top:auto;">
+
</div>
</div>
<div style="text-align:center; vertical-align: center;">
{% block contenu %}
{% endblock %}
</div>
<div style="text-align:right; vertical-align:bottom; ">
+
</div>
</div>
{% endblock %}

Loading…
Cancel
Save
Map all the world