up pages rues et évolutions dans le temps
This commit is contained in:
parent
7355600e6b
commit
c8e3cf2ada
10 changed files with 329 additions and 14 deletions
|
@ -8,7 +8,14 @@
|
|||
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body">
|
||||
<h1 class="card-title h2 mb-4">{{ 'display.welcome'|trans }} {{ commerce_overpass.tags_converted.name }} - {{ commerce.stats.name }}</h1>
|
||||
<h1 class="card-title h2 mb-4">
|
||||
{{ 'display.welcome'|trans }}
|
||||
{% set main_tag = commerce.mainTag is defined and commerce.mainTag is not empty ? commerce.mainTag : (commerce_overpass.tags_converted.main_tag is defined ? commerce_overpass.tags_converted.main_tag : null) %}
|
||||
{% if main_tag %}
|
||||
{{ tag_emoji(main_tag) }}
|
||||
{% endif %}
|
||||
{{ commerce_overpass.tags_converted.name }} - {{ commerce.stats.name }}
|
||||
</h1>
|
||||
<div id="map" style="height: 400px; width: 100%;" class="rounded mb-4"></div>
|
||||
{% include 'public/edit/address.html.twig' %}
|
||||
|
||||
|
|
|
@ -15,19 +15,36 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th>Type</th>
|
||||
<th>Décompte actuel</th>
|
||||
<th class="text-end">Décompte actuel</th>
|
||||
{% for p in periods %}
|
||||
<th>Évolution sur {{ p }}</th>
|
||||
<th class="text-end">Évolution sur {{ p }}</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for type, evo in evolutions %}
|
||||
<tr>
|
||||
<td>{{ type }}</td>
|
||||
<td>{{ evo.now }}</td>
|
||||
<td style="min-width: 15rem;">
|
||||
<a href="{{ path('admin_followup_theme_graph', {'insee_code': stats.zone, 'theme': type}) }}" class="btn btn-outline-secondary btn-sm ms-2"
|
||||
title="Voir le graphe détaillé">
|
||||
<i class="bi bi-bar-chart"></i>
|
||||
</a>
|
||||
{{ type }}
|
||||
</td>
|
||||
<td class="text-end">{{ evo.now }}</td>
|
||||
{% for p in periods %}
|
||||
<td>{% if evo[p] is not null %}{{ evo[p] > 0 ? '+' ~ evo[p] : evo[p] }}{% else %}<span class="text-muted">-</span>{% endif %}</td>
|
||||
<td class="text-end{% if evo[p] is not null and evo[p] != 0 %} bg-success-subtle{% if evo[p] < 0 %} bg-danger-subtle{% endif %}{% endif %}">
|
||||
{% if evo[p] is not null %}
|
||||
{% if evo[p] > 0 %}
|
||||
<i class="bi bi-arrow-up text-success"></i>
|
||||
{% elseif evo[p] < 0 %}
|
||||
<i class="bi bi-arrow-down text-danger"></i>
|
||||
{% endif %}
|
||||
{{ evo[p] > 0 ? '+' ~ evo[p] : evo[p] }}
|
||||
{% else %}
|
||||
<span class="text-muted">-</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% else %}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
{% block body %}
|
||||
<div class="container">
|
||||
<h1>Modification du lieu {{ commerce.tags_converted.name }}!</h1>
|
||||
<h1>Modification du lieu {{ commerce.tags_converted.name is defined and commerce.tags_converted.name is not empty ? commerce.tags_converted.name : '(sans nom)' }}!</h1>
|
||||
|
||||
{% if status == "Les tags ont été mis à jour avec succès" %}
|
||||
<span class="badge bg-success p-4">{{status}}</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue