pop in pour biographies
This commit is contained in:
@@ -4,23 +4,42 @@
|
||||
{% for personne in page.header.personnes %}
|
||||
|
||||
<div class="personne">
|
||||
<div class="portait">
|
||||
{% if personne.portrait %}
|
||||
<img src="{{page.media[personne.portrait].url|e }}" alt="portrait de {{personne.nom}}" />
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if personne.nom %}
|
||||
<h5>{{ personne.nom }}</h5>
|
||||
{% endif %}
|
||||
{% if personne.fonction %}
|
||||
<h6>{{ personne.fonction }}</h6>
|
||||
{% endif %}
|
||||
{% if personne.biographie %}
|
||||
<p>{{ personne.biographie|markdown }}</p>
|
||||
{% endif %}
|
||||
<div class="mozaique">
|
||||
<div class="portait">
|
||||
{% if personne.portrait %}
|
||||
<img src="{{page.media[personne.portrait].url|e }}" alt="portrait de {{personne.nom}}" />
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="info">
|
||||
{% if personne.nom %}
|
||||
<h5>{{ personne.nom }}</h5>
|
||||
{% endif %}
|
||||
{% if personne.fonction %}
|
||||
<h6>{{ personne.fonction }}</h6>
|
||||
{% endif %}
|
||||
<button class="bouton">Voir biographie</button>
|
||||
|
||||
</div>
|
||||
<div id="modal">
|
||||
<div class="mask">
|
||||
<div class="container">
|
||||
<div class="message">
|
||||
{% if personne.biographie %}
|
||||
<p>{{ personne.biographie|markdown }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<a href="#" class="close">×</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<div class="ressources {{ page.header.class}}">
|
||||
<div class="features {{ page.header.class}}">
|
||||
<div class="titre_nsb">
|
||||
{{ content|raw }}
|
||||
</div>
|
||||
|
||||
{% for rapport in page.header.rapports %}
|
||||
|
||||
<div class="ressource">
|
||||
<div class="feature">
|
||||
|
||||
{% if rapport.couverture and rapport.pdf %}
|
||||
<a href="{{page.media[rapport.pdf].url|e }}" download >
|
||||
@@ -23,22 +23,3 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{# ça, ça montre le pdf sur nouvelle page avec possibilité d'imprimer ou de télécharger (page de dialogue du navigateur)
|
||||
{% if rapport.couverture and rapport.pdf %}
|
||||
<a href="{{page.media[rapport.pdf].url|e }}" {{rapport.titre_du_rapport}} >
|
||||
<img src="{{page.media[rapport.couverture].url|e }}" alt="couverture du {{rapport.titre_du_rapport}}" />
|
||||
</a>
|
||||
{% endif %}
|
||||
#}
|
||||
|
||||
|
||||
{# ça, ça lance le téléchargement du pdf directement
|
||||
{% if rapport.couverture and rapport.pdf %}
|
||||
<a href="{{page.media[rapport.pdf].url|e }}" download >
|
||||
<img src="{{page.media[rapport.couverture].url|e }}" alt="couverture du {{rapport.titre_du_rapport}}" />
|
||||
</a>
|
||||
{% endif %}
|
||||
#}
|
||||
|
||||
Reference in New Issue
Block a user