From f224bbb5bd9936b20ccbeb93af0add6acb6570b5 Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Wed, 2 Feb 2022 14:26:39 +0100 Subject: [PATCH] # 86 HTML simplification * simplifies rendering of detail attributes for CompensationState and CompensationAction -> takes up less space --- .../compensation/detail/compensation/includes/actions.html | 6 ++---- .../detail/compensation/includes/states-after.html | 6 ++---- .../detail/compensation/includes/states-before.html | 6 ++---- .../compensation/detail/eco_account/includes/actions.html | 6 ++---- .../detail/eco_account/includes/states-after.html | 6 ++---- .../detail/eco_account/includes/states-before.html | 6 ++---- ema/templates/ema/detail/includes/actions.html | 6 ++---- ema/templates/ema/detail/includes/states-after.html | 6 ++---- ema/templates/ema/detail/includes/states-before.html | 6 ++---- 9 files changed, 18 insertions(+), 36 deletions(-) diff --git a/compensation/templates/compensation/detail/compensation/includes/actions.html b/compensation/templates/compensation/detail/compensation/includes/actions.html index 806d19ff..d82d8c08 100644 --- a/compensation/templates/compensation/detail/compensation/includes/actions.html +++ b/compensation/templates/compensation/detail/compensation/includes/actions.html @@ -49,11 +49,9 @@ {{ action.action_type }} {% if action.action_type_details.count > 0 %} -
- {% trans 'Action type details' %}: +
{% for detail in action.action_type_details.all %} -
-
{{detail.long_name}}
+ {{detail.long_name}} {% endfor %} {% endif %} diff --git a/compensation/templates/compensation/detail/compensation/includes/states-after.html b/compensation/templates/compensation/detail/compensation/includes/states-after.html index 026d0a51..b3e86a26 100644 --- a/compensation/templates/compensation/detail/compensation/includes/states-after.html +++ b/compensation/templates/compensation/detail/compensation/includes/states-after.html @@ -50,11 +50,9 @@ {{ state.biotope_type }} {% if state.biotope_type_details.count > 0 %} -
- {% trans 'Biotope additional type' %}: +
{% for detail in state.biotope_type_details.all %} -
-
{{detail.long_name}}
+ {{detail.long_name}} {% endfor %} {% endif %} diff --git a/compensation/templates/compensation/detail/compensation/includes/states-before.html b/compensation/templates/compensation/detail/compensation/includes/states-before.html index b9eeb341..c3c7e0f1 100644 --- a/compensation/templates/compensation/detail/compensation/includes/states-before.html +++ b/compensation/templates/compensation/detail/compensation/includes/states-before.html @@ -50,11 +50,9 @@ {{ state.biotope_type }} {% if state.biotope_type_details.count > 0 %} -
- {% trans 'Biotope additional type' %}: +
{% for detail in state.biotope_type_details.all %} -
-
{{detail.long_name}}
+ {{detail.long_name}} {% endfor %} {% endif %} diff --git a/compensation/templates/compensation/detail/eco_account/includes/actions.html b/compensation/templates/compensation/detail/eco_account/includes/actions.html index 2acd2594..d1275c78 100644 --- a/compensation/templates/compensation/detail/eco_account/includes/actions.html +++ b/compensation/templates/compensation/detail/eco_account/includes/actions.html @@ -48,11 +48,9 @@ {{ action.action_type }} {% if action.action_type_details.count > 0 %} -
- {% trans 'Action type details' %}: +
{% for detail in action.action_type_details.all %} -
-
{{detail.long_name}}
+ {{detail.long_name}} {% endfor %} {% endif %} diff --git a/compensation/templates/compensation/detail/eco_account/includes/states-after.html b/compensation/templates/compensation/detail/eco_account/includes/states-after.html index 0cec0144..ea696b31 100644 --- a/compensation/templates/compensation/detail/eco_account/includes/states-after.html +++ b/compensation/templates/compensation/detail/eco_account/includes/states-after.html @@ -50,11 +50,9 @@ {{ state.biotope_type }} {% if state.biotope_type_details.count > 0 %} -
- {% trans 'Biotope additional type' %}: +
{% for detail in state.biotope_type_details.all %} -
-
{{detail.long_name}}
+ {{detail.long_name}} {% endfor %} {% endif %} diff --git a/compensation/templates/compensation/detail/eco_account/includes/states-before.html b/compensation/templates/compensation/detail/eco_account/includes/states-before.html index 8c4a094a..af3042ea 100644 --- a/compensation/templates/compensation/detail/eco_account/includes/states-before.html +++ b/compensation/templates/compensation/detail/eco_account/includes/states-before.html @@ -50,11 +50,9 @@ {{ state.biotope_type }} {% if state.biotope_type_details.count > 0 %} -
- {% trans 'Biotope additional type' %}: +
{% for detail in state.biotope_type_details.all %} -
-
{{detail.long_name}}
+ {{detail.long_name}} {% endfor %} {% endif %} diff --git a/ema/templates/ema/detail/includes/actions.html b/ema/templates/ema/detail/includes/actions.html index d5852197..74f0564a 100644 --- a/ema/templates/ema/detail/includes/actions.html +++ b/ema/templates/ema/detail/includes/actions.html @@ -46,11 +46,9 @@ {{ action.action_type }} {% if action.action_type_details.count > 0 %} -
- {% trans 'Action type details' %}: +
{% for detail in action.action_type_details.all %} -
-
{{detail.long_name}}
+ {{detail.long_name}} {% endfor %} {% endif %} diff --git a/ema/templates/ema/detail/includes/states-after.html b/ema/templates/ema/detail/includes/states-after.html index 05876405..f0d3dfc4 100644 --- a/ema/templates/ema/detail/includes/states-after.html +++ b/ema/templates/ema/detail/includes/states-after.html @@ -48,11 +48,9 @@ {{ state.biotope_type }} {% if state.biotope_type_details.count > 0 %} -
- {% trans 'Biotope additional type' %}: +
{% for detail in state.biotope_type_details.all %} -
-
{{detail.long_name}}
+ {{detail.long_name}} {% endfor %} {% endif %} diff --git a/ema/templates/ema/detail/includes/states-before.html b/ema/templates/ema/detail/includes/states-before.html index 1d142cef..f479bd8d 100644 --- a/ema/templates/ema/detail/includes/states-before.html +++ b/ema/templates/ema/detail/includes/states-before.html @@ -48,11 +48,9 @@ {{ state.biotope_type }} {% if state.biotope_type_details.count > 0 %} -
- {% trans 'Biotope additional type' %}: +
{% for detail in state.biotope_type_details.all %} -
-
{{detail.long_name}}
+ {{detail.long_name}} {% endfor %} {% endif %}