From 5799ab1ea3b6e7bcba7a3744c0711e2c8f2acff9 Mon Sep 17 00:00:00 2001 From: artus Date: Sat, 13 Oct 2018 23:08:39 +0200 Subject: [PATCH] fixes bootstrap4 imports, statistiques templates and adds shadow effect on active links --- maraudes/templates/maraudes/finalize.html | 8 +++--- maraudes/templates/maraudes/index.html | 26 ++++++++++++++----- maraudes/views.py | 6 ++--- notes/templates/notes/details.html | 2 +- notes/templates/notes/details_sujet.html | 12 ++++----- notes/templates/notes/liste.html | 11 ++++---- notes/templates/notes/liste_sujets.html | 21 +++++++-------- .../statistiques/fiche_stats_details.html | 2 +- .../templates/statistiques/filter_form.html | 14 +++++----- .../templates/statistiques/index.html | 6 +---- statistiques/templates/statistiques/menu.html | 21 +++++---------- .../statistiques/multiple_charts.html | 21 +++++++-------- .../templates/statistiques/typologie.html | 20 +++++++------- website/templates/base.html | 10 ++----- website/templatetags/navbar.py | 2 +- 15 files changed, 85 insertions(+), 97 deletions(-) diff --git a/maraudes/templates/maraudes/finalize.html b/maraudes/templates/maraudes/finalize.html index 6c3525a..f426d12 100644 --- a/maraudes/templates/maraudes/finalize.html +++ b/maraudes/templates/maraudes/finalize.html @@ -1,5 +1,5 @@ {% extends "maraudes/base.html" %} -{% load bootstrap3 %} +{% load bootstrap4 %} {% block title %} {{ block.super }} Compte-rendu du {{ object.date }} {% endblock %} {% block breadcrumbs %} @@ -22,8 +22,8 @@ {% bootstrap_form form %} @@ -37,7 +37,7 @@ {{observation.sujet}} - {% bootstrap_icon "stats" %} Mise à jour + Mise à jour {{observation.text}}{% endfor %}{% endfor %} diff --git a/maraudes/templates/maraudes/index.html b/maraudes/templates/maraudes/index.html index e3a3cc0..49d11ca 100644 --- a/maraudes/templates/maraudes/index.html +++ b/maraudes/templates/maraudes/index.html @@ -9,9 +9,9 @@ {% block page_content %} {% load tables %} -
+
-
Planning
+
Planning
Prochaine maraude

@@ -30,22 +30,34 @@ Toutes les maraudes

+
{% if derniers_sujets_rencontres %} -
- {% table derniers_sujets_rencontres cols=3 cell_template="maraudes/table_cell_derniers_sujets.html" header="Ces derniers temps..." %} +
+
+
En ce moment nous croisons...
+
+ {% for sujet in derniers_sujets_rencontres %} + {{ sujet }}, + {% endfor %} +
+
{% endif %} {% if derniers_sujets_signales %} +
-
Signalements récents
+
+ Signalements récents +
{% for sjt in derniers_sujets_signales %} {{ sjt }} {% endfor %}
+
{% endif %} - +
{% if user.is_superuser and missing_cr %}
@@ -55,7 +67,7 @@
{% endif %}
-
+