mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-10 16:55:00 +00:00
Compare commits
7 Commits
async-uplo
...
issue_59_p
Author | SHA1 | Date | |
---|---|---|---|
|
5af36d18eb | ||
|
016baf1ac9 | ||
220f1ea0eb | |||
6bd7a0105d | |||
|
51c2408878 | ||
912a8d53af | |||
|
d73fd697dd |
File diff suppressed because it is too large
Load Diff
@@ -37,32 +37,32 @@ class LoadSocialActions extends AbstractFixture implements OrderedFixtureInterfa
|
|||||||
return 10020;
|
return 10020;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static $socialActions = array(
|
public static $socialActions = [
|
||||||
'social_action_info_conseil' => array(
|
'social_action_info_conseil' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'Informer, conseiller'
|
'fr' => 'Informer, conseiller'
|
||||||
),
|
],
|
||||||
'issue' => 'social_issue_prev_prot'
|
'issue' => 'social_issue_prev_prot'
|
||||||
),
|
],
|
||||||
'social_action_instruire' => array(
|
'social_action_instruire' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'Instruire l\'imprime unique pour des impayés'
|
'fr' => 'Instruire l\'imprime unique pour des impayés'
|
||||||
),
|
],
|
||||||
'issue' => 'social_issue_prev_prot'
|
'issue' => 'social_issue_prev_prot'
|
||||||
),
|
],
|
||||||
'social_action_MASP' => array(
|
'social_action_MASP' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'MASP'
|
'fr' => 'MASP'
|
||||||
),
|
],
|
||||||
'issue' => 'social_issue_diff_fin'
|
'issue' => 'social_issue_diff_fin'
|
||||||
),
|
],
|
||||||
'social_action_protection_enfant' => array(
|
'social_action_protection_enfant' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'Protection Enfant confié dans le cadre judiciaire'
|
'fr' => 'Protection Enfant confié dans le cadre judiciaire'
|
||||||
),
|
],
|
||||||
'issue' => 'social_issue_enfant_protection'
|
'issue' => 'social_issue_enfant_protection'
|
||||||
),
|
],
|
||||||
);
|
];
|
||||||
|
|
||||||
public function load(ObjectManager $manager)
|
public function load(ObjectManager $manager)
|
||||||
{
|
{
|
||||||
|
@@ -38,20 +38,20 @@ class LoadSocialGoals extends AbstractFixture implements OrderedFixtureInterface
|
|||||||
return 10030;
|
return 10030;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static $socialGoals = array(
|
public static $socialGoals = [
|
||||||
'social_goal_instuire_dossier' => array(
|
'social_goal_instuire_dossier' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'Instruire le dossier de surendettement'
|
'fr' => 'Instruire le dossier de surendettement'
|
||||||
),
|
],
|
||||||
'action' => 'social_action_MASP'
|
'action' => 'social_action_MASP'
|
||||||
),
|
],
|
||||||
'social_goal_proteger' => array(
|
'social_goal_proteger' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'Protéger via une assistance educative placement'
|
'fr' => 'Protéger via une assistance educative placement'
|
||||||
),
|
],
|
||||||
'action' => 'social_action_protection_enfant'
|
'action' => 'social_action_protection_enfant'
|
||||||
),
|
],
|
||||||
);
|
];
|
||||||
|
|
||||||
public function load(ObjectManager $manager)
|
public function load(ObjectManager $manager)
|
||||||
{
|
{
|
||||||
|
@@ -37,36 +37,36 @@ class LoadSocialIssues extends AbstractFixture implements OrderedFixtureInterfac
|
|||||||
return 10010;
|
return 10010;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static $socialIssues = array(
|
public static $socialIssues = [
|
||||||
'social_issue_diff_fin_or_admin' => array(
|
'social_issue_diff_fin_or_admin' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'ADULTE - DIFFICULTES FINANCIERES ET/OU ADMINISTRATIVES'
|
'fr' => 'ADULTE - DIFFICULTES FINANCIERES ET/OU ADMINISTRATIVES'
|
||||||
)
|
]
|
||||||
),
|
],
|
||||||
'social_issue_prev_prot' => array(
|
'social_issue_prev_prot' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'ADULTE PREVENTION/PROTECTION'
|
'fr' => 'ADULTE PREVENTION/PROTECTION'
|
||||||
),
|
],
|
||||||
'parent' => 'social_issue_diff_fin_or_admin'
|
'parent' => 'social_issue_diff_fin_or_admin'
|
||||||
),
|
],
|
||||||
'social_issue_diff_fin' => array(
|
'social_issue_diff_fin' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'Difficulté financière'
|
'fr' => 'Difficulté financière'
|
||||||
),
|
],
|
||||||
'parent' => 'social_issue_diff_fin_or_admin'
|
'parent' => 'social_issue_diff_fin_or_admin'
|
||||||
),
|
],
|
||||||
'social_issue_enfant_famille' => array(
|
'social_issue_enfant_famille' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'Enfant / famille'
|
'fr' => 'Enfant / famille'
|
||||||
)
|
]
|
||||||
),
|
],
|
||||||
'social_issue_enfant_protection' => array(
|
'social_issue_enfant_protection' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'enfant - protection'
|
'fr' => 'enfant - protection'
|
||||||
),
|
],
|
||||||
'parent' => 'social_issue_enfant_famille'
|
'parent' => 'social_issue_enfant_famille'
|
||||||
),
|
],
|
||||||
);
|
];
|
||||||
|
|
||||||
public function load(ObjectManager $manager)
|
public function load(ObjectManager $manager)
|
||||||
{
|
{
|
||||||
|
@@ -38,34 +38,34 @@ class LoadSocialResults extends AbstractFixture implements OrderedFixtureInterfa
|
|||||||
return 10040;
|
return 10040;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static $socialResults = array(
|
public static $socialResults = [
|
||||||
'social_result_FSL_acces' => array(
|
'social_result_FSL_acces' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'FSL - accès cautionnement'
|
'fr' => 'FSL - accès cautionnement'
|
||||||
),
|
],
|
||||||
'action' => 'social_action_instruire'
|
'action' => 'social_action_instruire'
|
||||||
),
|
],
|
||||||
'social_result_FSL_maintien' => array(
|
'social_result_FSL_maintien' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'FSL maintien - impayés de loyer'
|
'fr' => 'FSL maintien - impayés de loyer'
|
||||||
),
|
],
|
||||||
'action' => 'social_action_MASP'
|
'action' => 'social_action_MASP'
|
||||||
),
|
],
|
||||||
'social_result_soutien_parental' => array(
|
'social_result_soutien_parental' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'Soutien parental'
|
'fr' => 'Soutien parental'
|
||||||
),
|
],
|
||||||
// 'action' => 'social_action_protection_enfant', (via le goal)
|
// 'action' => 'social_action_protection_enfant', (via le goal)
|
||||||
'goal' => 'social_goal_proteger'
|
'goal' => 'social_goal_proteger'
|
||||||
),
|
],
|
||||||
'social_result_accompagnement_mineur' => array(
|
'social_result_accompagnement_mineur' => [
|
||||||
'title' => array(
|
'title' => [
|
||||||
'fr' => 'Accompagnement du mineur'
|
'fr' => 'Accompagnement du mineur'
|
||||||
),
|
],
|
||||||
// 'action' => 'social_action_protection_enfant', (via le goal)
|
// 'action' => 'social_action_protection_enfant', (via le goal)
|
||||||
'goal' => 'social_goal_proteger',
|
'goal' => 'social_goal_proteger',
|
||||||
),
|
],
|
||||||
);
|
];
|
||||||
|
|
||||||
public function load(ObjectManager $manager)
|
public function load(ObjectManager $manager)
|
||||||
{
|
{
|
||||||
|
@@ -5,24 +5,95 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<h1>{{ 'Resume Accompanying Course' | trans }}</h1>
|
||||||
|
|
||||||
{% if 'DRAFT' == accompanyingCourse.step %}
|
{% if 'DRAFT' == accompanyingCourse.step %}
|
||||||
<div class="grid-8 centered error flash_message">
|
<div class="grid-8 centered error flash_message">
|
||||||
<span>
|
<span>
|
||||||
{{ 'This accompanying course is still a draft'|trans }}
|
{{ 'This accompanying course is still a draft'|trans }}
|
||||||
<a href="{{ path('chill_person_accompanying_course_show', { 'accompanying_period_id': accompanyingCourse.id } ) }}">
|
<a href="{{ path('chill_person_accompanying_course_show', { 'accompanying_period_id': accompanyingCourse.id } ) }}">
|
||||||
{{ 'Edit & activate accompanying course'|trans }}
|
{{ 'Edit & activate accompanying course'|trans }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<h1>{{ 'Associated peoples'|trans }}</h1>
|
<div class="vue-component">
|
||||||
|
<h2>{{ 'Associated peoples'|trans }}</h2>
|
||||||
|
|
||||||
<h1>{{ 'Resources'|trans }}</h1>
|
{% if accompanyingCourse.participations.count > 0 %}
|
||||||
|
<table class="rounded">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="chill-orange">{{ 'First name' | trans }}</th>
|
||||||
|
<th class="chill-orange">{{ 'Last name' | trans }}</th>
|
||||||
|
<th class="chill-orange">{{ 'Start date' | trans }}</th>
|
||||||
|
<th class="chill-orange">{{ 'End date' | trans }}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for participation in accompanyingCourse.participations %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ participation.person.firstName }}</td>
|
||||||
|
<td>{{ participation.person.lastName }}</td>
|
||||||
|
<td>{{ participation.startDate | format_date('short') }}</td>
|
||||||
|
<td>{{ participation.endDate | format_date('short') }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{% else %}
|
||||||
|
<div class="grid-8 centered error flash_message">
|
||||||
|
{{ "No Associated peoples recorded" | trans }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<h1>{{ 'Social actions'|trans }}</h1>
|
<div class="vue-component">
|
||||||
|
<h2>{{ 'Resources'|trans }}</h2>
|
||||||
<h1>{{ 'Last events on accompanying course'|trans }}</h1>
|
|
||||||
|
|
||||||
|
{% if accompanyingCourse.resources.count > 0 %}
|
||||||
|
<table class="rounded">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="chill-orange">{{ 'First name' | trans }}</th>
|
||||||
|
<th class="chill-orange">{{ 'Last name' | trans }}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for resource in accompanyingCourse.resources %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ resource.person.firstName }}</td>
|
||||||
|
<td>{{ resource.person.lastName }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{% else %}
|
||||||
|
<div class="grid-8 centered alert flash_message">
|
||||||
|
{{ "No resources recorded" | trans }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="vue-component">
|
||||||
|
<h2>{{ 'Social actions'|trans }}</h2>
|
||||||
|
|
||||||
|
<div class="grid-8 centered notice flash_message">
|
||||||
|
{{ "Not implemented" | trans }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="vue-component">
|
||||||
|
<h2>{{ 'Last events on accompanying course'|trans }}</h2>
|
||||||
|
|
||||||
|
<div class="grid-8 centered notice flash_message">
|
||||||
|
{{ "Not implemented" | trans }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block css %}
|
||||||
|
{{ encore_entry_link_tags('accompanying_course') }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Reference in New Issue
Block a user