admin: refine social work admin form

This commit is contained in:
nobohan
2022-05-10 18:06:29 +02:00
parent b7ed658f96
commit f449dcbda1
10 changed files with 178 additions and 3 deletions

View File

@@ -5,6 +5,8 @@
{% block table_entities_thead_tr %}
<th>{{ 'Id'|trans }}</th>
<th>{{ 'Title'|trans }}</th>
<th>{{ 'evaluation.delay'|trans }}</th>
<th>{{ 'evaluation.notificationDelay'|trans }}</th>
<th>&nbsp;</th>
{% endblock %}
@@ -13,6 +15,32 @@
<tr>
<td>{{ entity.id }}</td>
<td>{{ entity.title|localize_translatable_string }}</td>
<td>
{% if entity.delay is not null %}
{% if entity.delay.d > 0 %}
{{ entity.delay.d }} {{'days'|trans}}
{% endif %}
{% if entity.delay.m > 0 %}
{{ entity.delay.m }} {{'months'|trans}}
{% endif %}
{% if entity.delay.y > 0 %}
{{ entity.delay.y }} {{'years'|trans}}
{% endif %}
{% endif %}
</td>
<td>
{% if entity.notificationDelay is not null %}
{% if entity.notificationDelay.d > 0 %}
{{ entity.notificationDelay.d }} {{'days'|trans}}
{% endif %}
{% if entity.notificationDelay.m > 0 %}
{{ entity.notificationDelay.m }} {{'months'|trans}}
{% endif %}
{% if entity.notificationDelay.y > 0 %}
{{ entity.notificationDelay.y }} {{'years'|trans}}
{% endif %}
{% endif %}
</td>
<td>
<ul class="record_actions">
<li>