mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
admin: adapt social work form type and templates
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
<th>{{ 'Id'|trans }}</th>
|
||||
<th>{{ 'Title'|trans }}</th>
|
||||
<th>{{ 'Social actions'|trans }}</th>
|
||||
<th>{{ 'goal.results'|trans }}</th>
|
||||
<th>{{ 'goal.desactivationDate'|trans }}</th>
|
||||
<th> </th>
|
||||
{% endblock %}
|
||||
@@ -21,6 +22,11 @@
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
{% for sa in entity.results %}
|
||||
{{ sa.title|localize_translatable_string }}{% if not loop.last %},{% else %}.{% endif %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
{% if entity.desactivationDate is not null %}
|
||||
{{ entity.desactivationDate|date('Y-m-d') }}
|
||||
{% endif %}
|
||||
|
@@ -9,7 +9,7 @@
|
||||
|
||||
{% block crud_content_form_rows %}
|
||||
{% for f in form %}
|
||||
{% if f.vars.name == 'parent' %}
|
||||
{% if f.vars.name == 'parent' or f.vars.name == 'issue' %}
|
||||
{{ form_row(f, { 'attr':{'disabled':'disabled'}}) }}
|
||||
{% else %}
|
||||
{{ form_row(f) }}
|
||||
|
@@ -6,6 +6,10 @@
|
||||
<th>{{ 'Id'|trans }}</th>
|
||||
<th>{{ 'Title'|trans }}</th>
|
||||
<th>{{ 'Parent'|trans }}</th>
|
||||
<th>{{ 'Social issue'|trans }}</th>
|
||||
<th>{{ 'Results'|trans }}</th>
|
||||
<th>{{ 'Goals'|trans }}</th>
|
||||
<th>{{ 'Evaluations'|trans }}</th>
|
||||
<th>{{ 'goal.desactivationDate'|trans }}</th>
|
||||
<th>{{ 'socialAction.defaultNotificationDelay'|trans }}</th>
|
||||
<th> </th>
|
||||
@@ -22,6 +26,26 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% for e in entity.issue %}
|
||||
{{ e.title|localize_translatable_string }}{% if not loop.last %},{% else %}.{% endif %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
{% for e in entity.results %}
|
||||
{{ e.title|localize_translatable_string }}{% if not loop.last %},{% else %}.{% endif %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
{% for e in entity.goals %}
|
||||
{{ e.title|localize_translatable_string }}{% if not loop.last %},{% else %}.{% endif %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
{% for e in entity.evaluations %}
|
||||
{{ e.title|localize_translatable_string }}{% if not loop.last %},{% else %}.{% endif %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
{% if entity.desactivationDate is not null %}
|
||||
{{ entity.desactivationDate|date('Y-m-d') }}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user