From e1865c726744558e38a7a8d4cb0447fee2700148 Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Mon, 31 Jan 2022 12:21:42 +0100 Subject: [PATCH] #88 Extra biotope codes templates * extends the detail view templates for all compensation related models to render extra CompensationState details as well * reduces number of landing page news from 4 to 3 * improves .card-text in favor of .scroll-150 * improves .card font size --- .../detail/compensation/includes/states-after.html | 14 ++++++++++++-- .../compensation/includes/states-before.html | 14 ++++++++++++-- .../detail/eco_account/includes/states-after.html | 14 ++++++++++++-- .../detail/eco_account/includes/states-before.html | 14 ++++++++++++-- .../ema/detail/includes/states-after.html | 14 ++++++++++++-- .../ema/detail/includes/states-before.html | 14 ++++++++++++-- konova/static/css/konova.css | 13 ++++++------- konova/templates/konova/includes/comment_card.html | 2 +- konova/views.py | 2 +- news/templates/news/dashboard-news.html | 2 +- news/templates/news/index.html | 2 +- 11 files changed, 82 insertions(+), 23 deletions(-) diff --git a/compensation/templates/compensation/detail/compensation/includes/states-after.html b/compensation/templates/compensation/detail/compensation/includes/states-after.html index f8dd00a..3f0b4ee 100644 --- a/compensation/templates/compensation/detail/compensation/includes/states-after.html +++ b/compensation/templates/compensation/detail/compensation/includes/states-after.html @@ -29,9 +29,12 @@ - + @@ -48,8 +51,15 @@ + -
+ {% trans 'Biotope type' %} + {% trans 'Biotope additional type' %} + {% trans 'Surface' %} {{ state.biotope_type }} + {% for biotope_extra in state.biotope_extra_types.all %} +
+ {{ biotope_extra.long_name }} +
+ {% endfor %} +
{{ state.surface|floatformat:2 }} m² + {% if is_default_member and has_access %}