# 86 HTML simplification

* simplifies rendering of detail attributes for CompensationState and CompensationAction -> takes up less space
This commit is contained in:
mpeltriaux 2022-02-02 14:26:39 +01:00
parent 874b266352
commit f224bbb5bd
9 changed files with 18 additions and 36 deletions

View File

@ -49,11 +49,9 @@
<td class="">
<span>{{ action.action_type }}</span>
{% if action.action_type_details.count > 0 %}
<hr>
<span>{% trans 'Action type details' %}:</span>
{% for detail in action.action_type_details.all %}
<br>
<div class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</div>
{% for detail in action.action_type_details.all %}
<span class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</span>
{% endfor %}
{% endif %}
</td>

View File

@ -50,11 +50,9 @@
<td>
<span>{{ state.biotope_type }}</span>
{% if state.biotope_type_details.count > 0 %}
<hr>
<span>{% trans 'Biotope additional type' %}:</span>
{% for detail in state.biotope_type_details.all %}
<br>
<div class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</div>
{% for detail in state.biotope_type_details.all %}
<span class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</span>
{% endfor %}
{% endif %}
</td>

View File

@ -50,11 +50,9 @@
<td>
<span>{{ state.biotope_type }}</span>
{% if state.biotope_type_details.count > 0 %}
<hr>
<span>{% trans 'Biotope additional type' %}:</span>
{% for detail in state.biotope_type_details.all %}
<br>
<div class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</div>
{% for detail in state.biotope_type_details.all %}
<span class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</span>
{% endfor %}
{% endif %}
</td>

View File

@ -48,11 +48,9 @@
<td class="">
<span>{{ action.action_type }}</span>
{% if action.action_type_details.count > 0 %}
<hr>
<span>{% trans 'Action type details' %}:</span>
{% for detail in action.action_type_details.all %}
<br>
<div class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</div>
{% for detail in action.action_type_details.all %}
<span class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</span>
{% endfor %}
{% endif %}
</td>

View File

@ -50,11 +50,9 @@
<td>
<span>{{ state.biotope_type }}</span>
{% if state.biotope_type_details.count > 0 %}
<hr>
<span>{% trans 'Biotope additional type' %}:</span>
{% for detail in state.biotope_type_details.all %}
<br>
<div class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</div>
{% for detail in state.biotope_type_details.all %}
<span class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</span>
{% endfor %}
{% endif %}
</td>

View File

@ -50,11 +50,9 @@
<td>
<span>{{ state.biotope_type }}</span>
{% if state.biotope_type_details.count > 0 %}
<hr>
<span>{% trans 'Biotope additional type' %}:</span>
{% for detail in state.biotope_type_details.all %}
<br>
<div class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</div>
{% for detail in state.biotope_type_details.all %}
<span class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</span>
{% endfor %}
{% endif %}
</td>

View File

@ -46,11 +46,9 @@
<td class="">
<span>{{ action.action_type }}</span>
{% if action.action_type_details.count > 0 %}
<hr>
<span>{% trans 'Action type details' %}:</span>
{% for detail in action.action_type_details.all %}
<br>
<div class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</div>
{% for detail in action.action_type_details.all %}
<span class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</span>
{% endfor %}
{% endif %}
</td>

View File

@ -48,11 +48,9 @@
<td>
<span>{{ state.biotope_type }}</span>
{% if state.biotope_type_details.count > 0 %}
<hr>
<span>{% trans 'Biotope additional type' %}:</span>
{% for detail in state.biotope_type_details.all %}
<br>
<div class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</div>
{% for detail in state.biotope_type_details.all %}
<span class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</span>
{% endfor %}
{% endif %}
</td>

View File

@ -48,11 +48,9 @@
<td>
<span>{{ state.biotope_type }}</span>
{% if state.biotope_type_details.count > 0 %}
<hr>
<span>{% trans 'Biotope additional type' %}:</span>
{% for detail in state.biotope_type_details.all %}
<br>
<div class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</div>
{% for detail in state.biotope_type_details.all %}
<span class="badge badge-pill rlp-r" title="{{detail}}">{{detail.long_name}}</span>
{% endfor %}
{% endif %}
</td>