Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gen pdf fonctionnement #45

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions backend/gn_module_zh/templates/fonctionnement.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,17 @@ <h5 class="subtitle">Régime hydrique</h5>
{% endfor %}
</tbody>
</table>
<span class="small-title"><b>Fréquence des submersions : </b>{{ data['fonctionnement']['regime']['entree']['frequence'] or 'Non déterminé' }}</span><br>
<span class="small-title"><b>Étendue des submersions : </b>{{ data['fonctionnement']['regime']['entree']['etendue'] or 'Non déterminé' }}</span>
</section>
<br>
<section class="content">
<h5 class="subtitle">Connexion de la zone humide dans son environnement</h5>
<span class="small-title">
<b>{{ data['fonctionnement']['connexion'] }}</b>
</span>
{% if data['fonctionnement']['connexion'] %}
<span class="small-title"><b>{{ data['fonctionnement']['connexion'] }}</b></span>
{% else %}
<span class="small-title">Non déterminé</span>
{% endif %}
{% set connexions = {
"Aucune connexion": "aucune_connexion.svg",
"Entrée et sortie": "entree_sortie.svg",
Expand All @@ -53,4 +58,11 @@ <h5 class="subtitle">Connexion de la zone humide dans son environnement</h5>
} %}
<img src="{{ url_for('pr_zh.static', filename=connexions[data['fonctionnement']['connexion']]) }}">
</section>
</div>
<br>
<section class="content">
<h5 class="subtitle">Diagnostic fonctionnel</h5>
<span class="small-title"><b>Fonctionnalité hydrologique / biogéochimique : </b>{{ data['fonctionnement']['diagnostic']['hydrologique'] or 'Non évaluée' }}</span><br>
<span class="small-title"><b>Fonctionnalité biologique / écologique : </b>{{ data['fonctionnement']['diagnostic']['biologique'] or 'Non évaluée' }}</span><br>
<span class="small-title"><b>Remarques : </b>{{ data['fonctionnement']['diagnostic']['commentaires'] or 'Aucune' }}</span>
</section>
</div>