share accompanying_course_work-list on resume page

This commit is contained in:
2021-08-22 20:13:42 +02:00
parent 9fd455b622
commit 4933edaa94
4 changed files with 30 additions and 45 deletions

View File

@@ -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 %}

View File

@@ -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 %}
<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 %}
<div class="flex-table">
<div class="flex-table accompanying_course_work-list">
{% for w in works %}
<div class="item-bloc">
<div class="item-row">
@@ -119,16 +113,4 @@
{% endfor %}
</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 %}