mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
share accompanying_course_work-list on resume page
This commit is contained in:
parent
9fd455b622
commit
4933edaa94
@ -100,7 +100,7 @@ class AccompanyingCourseWorkController extends AbstractController
|
|||||||
$paginator->getCurrentPageFirstItemNumber()
|
$paginator->getCurrentPageFirstItemNumber()
|
||||||
);
|
);
|
||||||
|
|
||||||
return $this->render('@ChillPerson/AccompanyingCourseWork/list_by_accompanying_period.html.twig', [
|
return $this->render('@ChillPerson/AccompanyingCourseWork/index.html.twig', [
|
||||||
'accompanyingCourse' => $period,
|
'accompanyingCourse' => $period,
|
||||||
'works' => $works,
|
'works' => $works,
|
||||||
'paginator' => $paginator
|
'paginator' => $paginator
|
||||||
|
@ -131,26 +131,7 @@
|
|||||||
|
|
||||||
<div class="social-actions mb-5">
|
<div class="social-actions mb-5">
|
||||||
<h2 class="mb-3">{{ 'Social actions'|trans }}</h2>
|
<h2 class="mb-3">{{ 'Social actions'|trans }}</h2>
|
||||||
{% for w in works %}
|
{% include 'ChillPersonBundle:AccompanyingCourseWork:list_by_accompanying_period.html.twig' %}
|
||||||
<div class="item">
|
|
||||||
<div class="title">
|
|
||||||
<p class="title_label">{{ 'accompanying_course_work.action'|trans }}</p >
|
|
||||||
<h2 class="title_action">
|
|
||||||
{{ w.socialAction|chill_entity_render_box({ 'no-badge': false }) }}
|
|
||||||
</h2>
|
|
||||||
</div>
|
|
||||||
<div class="actions">
|
|
||||||
<ul class="record_actions">
|
|
||||||
<li>
|
|
||||||
<a class="btn btn-edit"
|
|
||||||
href="{{ chill_path_add_return_path('chill_person_accompanying_period_work_edit', { 'id': w.id }) }}">{{ 'Edit'|trans }}</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% else %}
|
|
||||||
<p class="chill-no-data-statement">{{ 'accompanying_course_work.Any work'|trans }}</p>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% block contentActivity %}
|
{% block contentActivity %}
|
||||||
|
@ -0,0 +1,22 @@
|
|||||||
|
{% extends '@ChillPerson/AccompanyingCourse/layout.html.twig' %}
|
||||||
|
|
||||||
|
{% block title 'accompanying_course_work.List accompanying course work'|trans %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<div class="accompanying_course_work">
|
||||||
|
|
||||||
|
<h1>{{ block('title') }}</h1>
|
||||||
|
|
||||||
|
{% include 'ChillPersonBundle:AccompanyingCourseWork:list_by_accompanying_period.html.twig' %}
|
||||||
|
|
||||||
|
<ul class="record_actions sticky-form-buttons">
|
||||||
|
<li>
|
||||||
|
<a href="{{ chill_path_add_return_path('chill_person_accompanying_period_work_new', { 'id': accompanyingCourse.id }) }}"
|
||||||
|
class="btn btn-new">
|
||||||
|
{{ 'accompanying_course_work.create'|trans }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
@ -1,17 +1,11 @@
|
|||||||
{% extends '@ChillPerson/AccompanyingCourse/layout.html.twig' %}
|
|
||||||
|
|
||||||
{% block title 'accompanying_course_work.List accompanying course work'|trans %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<div class="accompanying_course_work-list">
|
|
||||||
|
|
||||||
<h1>{{ block('title') }}</h1>
|
|
||||||
|
|
||||||
{% if works|length == 0 %}
|
{% if works|length == 0 %}
|
||||||
<p class="chill-no-data-statement">{{ 'accompanying_course_work.Any work'|trans }}</p>
|
<p class="chill-no-data-statement">{{ 'accompanying_course_work.Any work'|trans }}
|
||||||
|
<a class="btn btn-sm btn-create"
|
||||||
|
href="" title="TODO"></a>{# TODO link #}
|
||||||
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="flex-table">
|
<div class="flex-table accompanying_course_work-list">
|
||||||
{% for w in works %}
|
{% for w in works %}
|
||||||
<div class="item-bloc">
|
<div class="item-bloc">
|
||||||
<div class="item-row">
|
<div class="item-row">
|
||||||
@ -119,16 +113,4 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="record_actions sticky-form-buttons">
|
|
||||||
<li>
|
|
||||||
<a href="{{ chill_path_add_return_path('chill_person_accompanying_period_work_new', { 'id': accompanyingCourse.id }) }}"
|
|
||||||
class="btn btn-new">
|
|
||||||
{{ 'accompanying_course_work.create'|trans }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user