{{ 'accompanying_course_work.goal'|trans }}
+{{ 'accompanying_course_work.results without objective'|trans }}
+{{ 'accompanying_course_work.results'|trans }}
+{{ 'accompanying_course_work.goal'|trans }}
+{{ 'accompanying_course_work.results'|trans }}
+{{ 'accompanying_course_work.no_results'|trans }}
+ {% else %} +{{ 'accompanying_course_work.results'|trans }}
+{{ 'accompanying_course_work.Any work'|trans }}
+ {% endfor %} +{{ 'accompanying_course_work.No work'|trans }}
+{{ 'accompanying_course_work.Any work'|trans }}
{% endfor %} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig index 05e4702aa..4c9c89cce 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig @@ -8,22 +8,48 @@{{ 'accompanying_period.dates'|trans }} | - {% if chill_accompanying_periods.fields.user == 'visible' %} -{{ 'Accompanying user'|trans }} | - {% endif %} -{{ 'Remark'|trans }} | -- |
---|---|---|---|
+
+ {% if chill_accompanying_periods.fields.user == 'visible' %}
+ {% if accompanying_period.user %}
+ {{ accompanying_period.user.username }}
+ {% else %}
+ {{ 'No accompanying user'|trans }}
+ {% endif %}
+ {% endif %}
+
+
+
+
{% if accompanying_period.closingDate == null %}
{{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': accompanying_period.openingDate|format_date('long') } ) }}
{% else %}
@@ -32,41 +58,62 @@
'%closing_date%': accompanying_period.closingDate|format_date('long')}
) }}
- {% if accompanying_period.isOpen == false %}
-
|
- {% if chill_accompanying_periods.fields.user == 'visible' %}
- - {% if accompanying_period.user %} - {{ accompanying_period.user.username }} - {% else %} - {{ 'No accompanying user'|trans }} - {% endif %} - | - {% endif %} -
- {% if accompanying_period is not empty %}
- - {{ accompanying_period.remark|chill_markdown_to_html }} -- {% else %} - {{ null|chill_print_or_message('No remark', 'blockquote') }} - {% endif %} - |
-
+
+
+
+
+ {{ 'Participants'|trans }}+ {% if accompanying_period.participations.count > 0 %} + {% for p in accompanying_period.participations %} ++ + {{ p.person.firstname ~ ' ' ~ p.person.lastname }} + + + {% endfor %} + {% else %} + {{ 'No data given'|trans }} + {% endif %} +
+
+
+ {{ 'Requestor'|trans }}+ {% if accompanying_period.requestorPerson is not null or accompanying_period.requestorThirdParty is not null %} + {% if accompanying_period.requestorPerson is not null %} +{{ accompanying_period.requestorPerson.firstname ~ ' ' ~ accompanying_period.requestorPerson.lastname }} + {% endif %} + {% if accompanying_period.requestorThirdParty is not null %} +{{ accompanying_period.requestorThirdParty.name }} + {% endif %} + {% else %} + {{ 'No data given'|trans }} + {% endif %} +
+
+
+
- {{ 'Social issues'|trans }}+ {% if accompanying_period.socialIssues.count > 0 %} + {% for si in accompanying_period.socialIssues %} +{{ si.title|localize_translatable_string }} + {% endfor %} + {% else %} + {{ 'No data given'|trans }} + {% endif %} + |
-