From 456cdf3704de9b2efe631cd4d690449eb47689d1 Mon Sep 17 00:00:00 2001 From: artus Date: Sun, 14 Oct 2018 21:49:38 +0200 Subject: [PATCH] lots of fixes --- notes/templates/notes/details.html | 15 +----- notes/templates/notes/details_maraude.html | 2 +- notes/templates/notes/details_sujet.html | 49 +++++-------------- .../templates/notes/details_sujet_inner.html | 6 +-- .../templates/notes/details_sujet_update.html | 16 +++--- notes/templates/notes/table_inline.html | 4 +- notes/views.py | 3 +- .../statistiques/fiche_stats_details.html | 13 ++--- .../statistiques/fiche_stats_update.html | 4 +- website/templates/tables/table.html | 2 +- website/templatetags/boolean_icons.py | 8 +-- 11 files changed, 42 insertions(+), 80 deletions(-) diff --git a/notes/templates/notes/details.html b/notes/templates/notes/details.html index c2b6d87..c8afff4 100644 --- a/notes/templates/notes/details.html +++ b/notes/templates/notes/details.html @@ -3,16 +3,7 @@ {% block page_content %}
-
-
- -{% block pre_content %}{% endblock %} - +
{% for note in notes %} {% if maraude %} {% inline_table note header="sujet" %} @@ -21,9 +12,7 @@ {% endif %} {% endfor %}
-{% block post_content %}{% endblock %} -
-
+{% block pagination %}{% endblock %}
diff --git a/notes/templates/notes/details_maraude.html b/notes/templates/notes/details_maraude.html index e31da54..3329e56 100644 --- a/notes/templates/notes/details_maraude.html +++ b/notes/templates/notes/details_maraude.html @@ -30,7 +30,7 @@ {% endblock %} {% block right_column %} -
+
Informations

Maraudeurs :  {{ maraude.binome }} & {{ maraude.referent }}

diff --git a/notes/templates/notes/details_sujet.html b/notes/templates/notes/details_sujet.html index b80a1de..ce07279 100644 --- a/notes/templates/notes/details_sujet.html +++ b/notes/templates/notes/details_sujet.html @@ -6,55 +6,27 @@ {% endblock %} {% block breadcrumbs %} - {{ block.super }} -
  • Sujets
  • -
  • {{ sujet }}
  • + {% endblock %} -{% block pre_content %} -
    -{% endblock %} - -{% block post_content %} - {% if notes.has_other_pages %} + {% endif %}
    -
    - -
    -
    -
    {% csrf_token %} - {% bootstrap_form note_form show_label=False %} -
    - -
    {% endblock %} {% block right_column %} -
    -
    -

    Informations

    -
    +
    +
    Informations
    {% include "notes/details_sujet_inner.html" %}
    -
    -

    Statistiques

    +
    +
    Statistiques
    {% include "statistiques/fiche_stats_details.html" with object=sujet.statistiques %}
    @@ -89,6 +61,7 @@ {% block sidebar %} {{ block.super }} + {% if user.is_superuser %}
    diff --git a/notes/templates/notes/details_sujet_inner.html b/notes/templates/notes/details_sujet_inner.html index 65d811a..ca6ccf5 100644 --- a/notes/templates/notes/details_sujet_inner.html +++ b/notes/templates/notes/details_sujet_inner.html @@ -1,5 +1,5 @@
    - +
    {% with "-" as none %} @@ -7,9 +7,7 @@ {% endwith %}
    NomSurnomPrénom
    {{ sujet.nom|default:none }}{{ sujet.surnom|default:none}}{{ sujet.prenom|default:none}}
    {{ sujet.age|default_if_none:none }}{{ sujet.premiere_rencontre|default_if_none:none }}
    - +