From 2ea7f7711f02ce87815a446126b9515a58f32e3a Mon Sep 17 00:00:00 2001 From: Tykayn Date: Sun, 29 Jun 2025 10:22:24 +0200 Subject: [PATCH] conteneur de tableau long --- assets/styles/app.css | 7 ++ templates/admin/stats.html.twig | 129 +++++++++++++++++---------- templates/public/dashboard.html.twig | 118 ++++++++++++------------ 3 files changed, 148 insertions(+), 106 deletions(-) diff --git a/assets/styles/app.css b/assets/styles/app.css index f37a0bd..09f609b 100644 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -163,4 +163,11 @@ img { table tbody { max-height: 700px; overflow: auto; +} + +#table_container, .table-container, #table-container{ + max-height: 700px; + overflow: auto; + display: block; + border: solid 3px rgb(255, 255, 255); } \ No newline at end of file diff --git a/templates/admin/stats.html.twig b/templates/admin/stats.html.twig index c3ddbab..4125a06 100644 --- a/templates/admin/stats.html.twig +++ b/templates/admin/stats.html.twig @@ -208,8 +208,35 @@ - {# #} - +
+
+
+
+ + + + +
+
+
+
+
+ + + +
+
+
+
+
+
+
{% include 'admin/stats/table-head.html.twig' %} {% for commerce in stats.places %} @@ -217,6 +244,9 @@ {% endfor %}
+ + +
@@ -224,54 +254,57 @@

Podium des contributeurs OSM de cette ville

- - - - - - - - - - - - - {% for row in podium_local %} +
+ +
#Utilisateur OSMNombre de lieuxScore de complétion moyenScore de complétion pondéréScore pondéré normalisé (0-100)
+ - - - - - - + + + + + + - {% else %} - - {% endfor %} - -
{{ loop.index }} - - {{ row.osm_user }} - - {{ row.nb }} - {% if row.completion_moyen is not null %} - {{ row.completion_moyen }} % - {% else %} - N/A - {% endif %} - - {% if row.completion_pondere is not null %} - {{ row.completion_pondere }} - {% else %} - N/A - {% endif %} - - {% if row.completion_pondere_normalisee is not null %} - {{ row.completion_pondere_normalisee }} - {% else %} - N/A - {% endif %} - #Utilisateur OSMNombre de lieuxScore de complétion moyenScore de complétion pondéréScore pondéré normalisé (0-100)
Aucun contributeur trouvé pour cette ville.
+ + + {% for row in podium_local %} + + {{ loop.index }} + + + {{ row.osm_user }} + + + {{ row.nb }} + + {% if row.completion_moyen is not null %} + {{ row.completion_moyen }} % + {% else %} + N/A + {% endif %} + + + {% if row.completion_pondere is not null %} + {{ row.completion_pondere }} + {% else %} + N/A + {% endif %} + + + {% if row.completion_pondere_normalisee is not null %} + {{ row.completion_pondere_normalisee }} + {% else %} + N/A + {% endif %} + + + {% else %} + Aucun contributeur trouvé pour cette ville. + {% endfor %} + + +
diff --git a/templates/public/dashboard.html.twig b/templates/public/dashboard.html.twig index 4353cbd..ae746ac 100644 --- a/templates/public/dashboard.html.twig +++ b/templates/public/dashboard.html.twig @@ -139,66 +139,68 @@

Statistiques par ville

-
- - - - - - - - - - - - - - - - - {% for stat in stats_list %} +
+
+
VilleCode postalComplétionNombre de commercesLieux par habitantsBudgetBudget/habitantBudget/lieuDate moyenne de mise à jourActions
+ - - - - - - - - - - + + + + + + + + + + - {% endfor %} - -
- {{ stat.name }} - {% if not stat.name and stat.zone starts with '751' %} - Paris {{ stat.zone|slice(-2) }}e. - - {% endif %} - {{ stat.zone }}{{ stat.completionPercent }}%{{ stat.placesCount }}{{ (stat.placesCount / (stat.population or 1 ))|round(2) }}{% if stat.budgetAnnuel %}{{ (stat.budgetAnnuel / 1000000)|number_format(1, '.', ' ') }} M€{% else %}-{% endif %}{% if stat.budgetAnnuel and stat.population %}{{ (stat.budgetAnnuel / stat.population)|number_format(0, '.', ' ') }} €{% else %}-{% endif %}{% if stat.budgetAnnuel and stat.placesCount %}{{ (stat.budgetAnnuel / stat.placesCount)|number_format(0, '.', ' ') }} €{% else %}-{% endif %}{{ stat.osmDataDateAvg|date('Y-m-d H:i') }} - - VilleCode postalComplétionNombre de commercesLieux par habitantsBudgetBudget/habitantBudget/lieuDate moyenne de mise à jourActions
+ + + {% for stat in stats_list %} + + + {{ stat.name }} + {% if not stat.name and stat.zone starts with '751' %} + Paris {{ stat.zone|slice(-2) }}e. + + {% endif %} + + {{ stat.zone }} + {{ stat.completionPercent }}% + {{ stat.placesCount }} + {{ (stat.placesCount / (stat.population or 1 ))|round(2) }} + {% if stat.budgetAnnuel %}{{ (stat.budgetAnnuel / 1000000)|number_format(1, '.', ' ') }} M€{% else %}-{% endif %} + {% if stat.budgetAnnuel and stat.population %}{{ (stat.budgetAnnuel / stat.population)|number_format(0, '.', ' ') }} €{% else %}-{% endif %} + {% if stat.budgetAnnuel and stat.placesCount %}{{ (stat.budgetAnnuel / stat.placesCount)|number_format(0, '.', ' ') }} €{% else %}-{% endif %} + {{ stat.osmDataDateAvg|date('Y-m-d H:i') }} + + + + + {% endfor %} + + +