init new AccompanyingCourse (parcours) section

This commit is contained in:
2021-04-15 11:46:08 +02:00
parent 083f56bff0
commit 16b155d449
13 changed files with 337 additions and 17 deletions

View File

@@ -0,0 +1,41 @@
<div class="subheader">
<div class="grid-12 parent" id="header-accompanying_course-name" >
<div class="grid-10 push-1 grid-mobile-12 grid-tablet-12 push-mobile-0 push-tablet-0 parent">
<div class="grid-5">{% set title = title %}
<h1>
<i class="fa fa-random fa-fw"></i>
{{ 'Accompanying Course'|trans }}{# ou défini en amont
{{ title|default('Accompanying Course'|trans)|raw }} #}
<span style="font-weight: lighter; font-size: 65%;">(n°{{ accompanyingCourse.id }})</span>
</h1>
</div>
<div class="grid-4">
<ul class="record_actions">
<li>ponctuel <i class="fa fa-toggle-on fa-fw"></i> régulier</li>
<li>ouvert</li>
<li>en file active</li>
<li>urgent</li>
</ul>
</div>
<div class="grid-3">
<p style="text-align: right;">
<i>ouvert le 11 avril 2019</i><br>
par <b>Soline Maillet | SIPAS</b>
</p>
</div>
</div>
</div>
<div class="grid-12 parent" id="header-accompanying_course-details" >
<div class="grid-10 push-1 grid-mobile-12 grid-tablet-12 push-mobile-0 push-tablet-0 parent">
<div class="grid-4">Problématiques sociales</div>
<div class="grid-4">_</div>
<div class="grid-4">_</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,26 @@
{% extends 'ChillPersonBundle:AccompanyingCourse:layout.html.twig' %}
{% block title %}
{{ 'Accompanying Course Details'|trans }}
{% endblock %}
{% block content %}
<h1>{{ block('title') }}</h1>
<pre>
{{ accompanyingCourse.id }}
{{ accompanyingCourse.openingDate|format_date('short') }}
{{ accompanyingCourse.closingDate|format_date('short') }}
{{ accompanyingCourse.closingMotive|chill_entity_render_box }}
{{ accompanyingCourse.remark|raw }}
{{ accompanyingCourse.user }}
usagers:
{% for p in accompanyingCourse.participations %}
{{ p.person.id }} | <a href="{{ path('chill_person_accompanying_period_list', { person_id: p.person.id }) }}">{{ p.person.fullnamecanonical }}</a> | {{ p.startdate|format_date('short') }} | {{ p.enddate|format_date('short') }}
{% endfor %}
</pre>
{{ dump() }}
{% endblock %}

View File

@@ -0,0 +1,26 @@
{% extends 'ChillPersonBundle:AccompanyingCourse:layout.html.twig' %}
{% block title %}
{{ 'Resume Accompanying Course'|trans }}
{% endblock %}
{% block content %}
<h1>{{ block('title') }}</h1>
<pre>
{{ accompanyingCourse.id }}
{{ accompanyingCourse.openingDate|format_date('short') }}
{{ accompanyingCourse.closingDate|format_date('short') }}
{{ accompanyingCourse.closingMotive|chill_entity_render_box }}
{{ accompanyingCourse.remark|raw }}
{{ accompanyingCourse.user }}
usagers:
{% for p in accompanyingCourse.participations %}
{{ p.person.id }} | <a href="{{ path('chill_person_accompanying_period_list', { person_id: p.person.id }) }}">{{ p.person.fullnamecanonical }}</a> | {{ p.startdate|format_date('short') }} | {{ p.enddate|format_date('short') }}
{% endfor %}
</pre>
{{ dump() }}
{% endblock %}

View File

@@ -0,0 +1,47 @@
{% extends "ChillMainBundle::layoutWithVerticalMenu.html.twig" %}
{% block top_banner %}
{{ include('ChillPersonBundle:AccompanyingCourse:banner.html.twig', { title: block('title') }) }}
{% endblock %}
{% block layout_wvm_content %}
{% block content %}{% endblock %}
{% endblock %}
{% block vertical_menu_content %}
{{ chill_menu('accompanyingCourse', {
'layout': 'ChillPersonBundle:AccompanyingCourse:menu.html.twig',
'args' : { 'accompanyingCourse': accompanyingCourse }
}) }}
{% endblock %}
{% block css %}
<style>
div#header-accompanying_course-name {
background: none repeat scroll 0 0 #718596; /*#DF6D6D;*/
color: #FFF;
padding-top: 1em;
padding-bottom: 1em;
}
div#header-accompanying_course-name span a {
color: white;
}
div#header-accompanying_course-name span a:hover {
text-decoration: underline;
}
div#header-accompanying_course-details {
background: none repeat scroll 0 0 #718596ab; /*#DF8C8A;*/
color: #FFF;
padding-top: 1em;
padding-bottom: 1em;
}
/* /!\ Contourne le positionnement problématique du div#content_conainter suivant,
* car sa position: relative le place au-dessus du bandeau et les liens sont incliquables */
div.subheader {
height: 130px;
}
</style>
{% endblock %}
{% block js %}
{% endblock %}

View File

@@ -0,0 +1,7 @@
<ul class="tab-nav">
{% for menu in menus %}
<li class="">
<a href="{{ menu.uri }}" >{{ menu.label|upper }}</a>
</li>
{% endfor %}
</ul>

View File

@@ -0,0 +1,27 @@
{% extends 'ChillPersonBundle:AccompanyingCourse:layout.html.twig' %}
{% block title %}
{{ 'Edit Accompanying Course'|trans }}
{% endblock %}
{% block content %}
<h1>{{ block('title') }}</h1>
<pre>
{{ accompanyingCourse.id }}
{{ accompanyingCourse.openingDate|format_date('short') }}
{{ accompanyingCourse.closingDate|format_date('short') }}
{{ accompanyingCourse.closingMotive|chill_entity_render_box }}
{{ accompanyingCourse.remark|raw }}
{{ accompanyingCourse.user }}
usagers:
{% for p in accompanyingCourse.participations %}
{{ p.person.id }} | <a href="{{ path('chill_person_accompanying_period_list', { person_id: p.person.id }) }}">{{ p.person.fullnamecanonical }}</a> | {{ p.startdate|format_date('short') }} | {{ p.enddate|format_date('short') }}
{% endfor %}
</pre>
{{ dump() }}
{% endblock %}

View File

@@ -18,7 +18,7 @@
<th class="chill-orange">{{ 'Remark'|trans }}</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{% for accompanying_period in accompanying_periods %}
@@ -27,7 +27,7 @@
{% if accompanying_period.closingDate == null %}
{{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': accompanying_period.openingDate|format_date('long') } ) }}
{% else %}
{{ 'accompanying_period.dates_from_%opening_date%_to_%closing_date%'|trans({
{{ 'accompanying_period.dates_from_%opening_date%_to_%closing_date%'|trans({
'%opening_date%': accompanying_period.openingDate|format_date('long'),
'%closing_date%': accompanying_period.closingDate|format_date('long')}
) }}
@@ -61,6 +61,12 @@
</td>
<td>
<ul class="record_actions">
{# TODO if enable_accompanying_course_with_multiple_persons is true ... #}
<li>
<a href="{{ path('chill_person_accompanying_course_index', { 'accompanying_period_id': accompanying_period.id }) }}" class="sc-button bt-show"></a>
</li>
<li>
<a href="{{ path('chill_person_accompanying_period_update', {'person_id' : person.id, 'period_id' : accompanying_period.id } ) }}" class="sc-button bt-update no-content"></a>
</li>
@@ -79,7 +85,7 @@
</li>
{% endif %}
</ul>
</td>
</tr>
{% endfor %}
@@ -106,7 +112,7 @@
</a>
</li>
{% endif %}
</ul>
</ul>
</div>
{% endblock personcontent %}