diff --git a/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php b/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php
index 950715a2b..faf37b92c 100644
--- a/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php
+++ b/src/Bundle/ChillPersonBundle/DependencyInjection/ChillPersonExtension.php
@@ -286,7 +286,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
],
'edit' => [
'role' => 'ROLE_ADMIN',
- 'template' => '@ChillPerson/SocialWork/edit.html.twig',
+ 'template' => '@ChillPerson/SocialWork/SocialIssue/edit.html.twig',
],
],
],
@@ -307,7 +307,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
],
'edit' => [
'role' => 'ROLE_ADMIN',
- 'template' => '@ChillPerson/SocialWork/edit.html.twig',
+ 'template' => '@ChillPerson/SocialWork/SocialAction/edit.html.twig',
],
],
],
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/Evaluation/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/Evaluation/index.html.twig
index 0adc82788..556065e42 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/Evaluation/index.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/Evaluation/index.html.twig
@@ -5,6 +5,8 @@
{% block table_entities_thead_tr %}
{{ 'Id'|trans }} |
{{ 'Title'|trans }} |
+
{{ 'evaluation.delay'|trans }} |
+
{{ 'evaluation.notificationDelay'|trans }} |
|
{% endblock %}
@@ -13,6 +15,32 @@
{{ entity.id }} |
{{ entity.title|localize_translatable_string }} |
+
+ {% 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 %}
+ |
+
+ {% 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 %}
+ |
-
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/Goal/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/Goal/index.html.twig
index 3bcff2b11..31db795be 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/Goal/index.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/Goal/index.html.twig
@@ -5,6 +5,8 @@
{% block table_entities_thead_tr %}
{{ 'Id'|trans }} |
{{ 'Title'|trans }} |
+ {{ 'Social actions'|trans }} |
+ {{ 'goal.desactivationDate'|trans }} |
|
{% endblock %}
@@ -13,6 +15,16 @@
{{ entity.id }} |
{{ entity.title|localize_translatable_string }} |
+
+ {% for sa in entity.socialActions %}
+ {{ sa.title|localize_translatable_string }}{% if not loop.last %},{% else %}.{% endif %}
+ {% endfor %}
+ |
+
+ {% if entity.desactivationDate is not null %}
+ {{ entity.desactivationDate|date('Y-m-d') }}
+ {% endif %}
+ |
-
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialAction/edit.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialAction/edit.html.twig
new file mode 100644
index 000000000..ffad69128
--- /dev/null
+++ b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialAction/edit.html.twig
@@ -0,0 +1,22 @@
+{% extends '@ChillMain/CRUD/Admin/index.html.twig' %}
+
+{% block title %}
+ {% include('@ChillMain/CRUD/_edit_title.html.twig') %}
+{% endblock %}
+
+{% block admin_content %}
+ {% embed '@ChillMain/CRUD/_edit_content.html.twig' %}
+
+ {% block crud_content_form_rows %}
+ {% for f in form %}
+ {% if f.vars.name == 'parent' %}
+ {{ form_row(f, { 'attr':{'disabled':'disabled'}}) }}
+ {% else %}
+ {{ form_row(f) }}
+ {% endif %}
+ {% endfor %}
+ {% endblock crud_content_form_rows %}
+
+ {% block content_form_actions_save_and_show %}{% endblock %}
+ {% endembed %}
+{% endblock admin_content %}
\ No newline at end of file
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialAction/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialAction/index.html.twig
index 0497ee199..acfce6ee6 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialAction/index.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialAction/index.html.twig
@@ -5,6 +5,9 @@
{% block table_entities_thead_tr %}
{{ 'Id'|trans }} |
{{ 'Title'|trans }} |
+ {{ 'Parent'|trans }} |
+ {{ 'goal.desactivationDate'|trans }} |
+ {{ 'socialAction.defaultNotificationDelay'|trans }} |
|
{% endblock %}
@@ -13,6 +16,29 @@
{{ entity.id }} |
{{ entity.title|localize_translatable_string }} |
+
+ {% if entity.parent is not null %}
+ {{ entity.parent.title|localize_translatable_string }}
+ {% endif %}
+ |
+
+ {% if entity.desactivationDate is not null %}
+ {{ entity.desactivationDate|date('Y-m-d') }}
+ {% endif %}
+ |
+
+ {% if entity.defaultNotificationDelay is not null %}
+ {% if entity.defaultNotificationDelay.d > 0 %}
+ {{ entity.defaultNotificationDelay.d }} {{'days'|trans}}
+ {% endif %}
+ {% if entity.defaultNotificationDelay.m > 0 %}
+ {{ entity.defaultNotificationDelay.m }} {{'months'|trans}}
+ {% endif %}
+ {% if entity.defaultNotificationDelay.y > 0 %}
+ {{ entity.defaultNotificationDelay.y }} {{'years'|trans}}
+ {% endif %}
+ {% endif %}
+ |
-
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialIssue/edit.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialIssue/edit.html.twig
new file mode 100644
index 000000000..ffad69128
--- /dev/null
+++ b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialIssue/edit.html.twig
@@ -0,0 +1,22 @@
+{% extends '@ChillMain/CRUD/Admin/index.html.twig' %}
+
+{% block title %}
+ {% include('@ChillMain/CRUD/_edit_title.html.twig') %}
+{% endblock %}
+
+{% block admin_content %}
+ {% embed '@ChillMain/CRUD/_edit_content.html.twig' %}
+
+ {% block crud_content_form_rows %}
+ {% for f in form %}
+ {% if f.vars.name == 'parent' %}
+ {{ form_row(f, { 'attr':{'disabled':'disabled'}}) }}
+ {% else %}
+ {{ form_row(f) }}
+ {% endif %}
+ {% endfor %}
+ {% endblock crud_content_form_rows %}
+
+ {% block content_form_actions_save_and_show %}{% endblock %}
+ {% endembed %}
+{% endblock admin_content %}
\ No newline at end of file
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialIssue/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialIssue/index.html.twig
index 3a08ab850..4682a5464 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialIssue/index.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/SocialIssue/index.html.twig
@@ -5,6 +5,8 @@
{% block table_entities_thead_tr %}
{{ 'Id'|trans }} |
{{ 'Title'|trans }} |
+ {{ 'Parent'|trans }} |
+ {{ 'goal.desactivationDate'|trans }} |
|
{% endblock %}
@@ -13,6 +15,16 @@
{{ entity.id }} |
{{ entity.title|localize_translatable_string }} |
+
+ {% if entity.parent is not null %}
+ {{ entity.parent.title|localize_translatable_string }}
+ {% endif %}
+ |
+
+ {% if entity.desactivationDate is not null %}
+ {{ entity.desactivationDate|date('Y-m-d') }}
+ {% endif %}
+ |
-
diff --git a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml
index ea22a2793..9e3409dfc 100644
--- a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml
+++ b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml
@@ -456,6 +456,10 @@ relation:
title: Premier membre
reverseTitle: Deuxième membre
+days: jours
+months: mois
+years: années
+
# specific to closing motive
closing_motive:
any parent: Aucun parent
| | | |