[backend] prepare new page: controller, route, link and minimal template

This commit is contained in:
2022-12-13 15:46:17 +01:00
parent 7abecdea02
commit 6ab5e708ec
5 changed files with 53 additions and 2 deletions

View File

@@ -128,10 +128,15 @@
'Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWork',
w.id, [], suppEvaluations) }}
</li>
<li>
<a class="btn btn-show" title="{{ 'Show'|trans }}"
href="{{ chill_path_add_return_path('chill_person_accompanying_period_work_show', {'id': w.id }) }}"
></a>
</li>
{% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_UPDATE', w) %}
<li>
<a class="btn btn-edit" title="{{ 'Edit'|trans }}"
href="{{ chill_path_add_return_path('chill_person_accompanying_period_work_edit', { 'id': w.id }) }}"
href="{{ chill_path_add_return_path('chill_person_accompanying_period_work_edit', { 'id': w.id }) }}"
></a>
</li>
{% endif %}

View File

@@ -9,7 +9,7 @@
{% endblock %}
{% block content %}
<div class="accompanying_course_work-edit">
<div class="accompanying_course_work">
<h1>{{ block('title') }}</h1>
<div id="accompanying_course_work_edit"></div>
</div>

View File

@@ -0,0 +1,23 @@
{% extends '@ChillPerson/AccompanyingCourse/layout.html.twig' %}
{% block title 'accompanying_course_work.Show accompanying course work'|trans %}
{% block css %}
{{ parent() }}
{% endblock %}
{% block content %}
<div class="accompanying_course_work">
<h1>{{ block('title') }}</h1>
{{ dump() }}
</div>
{% endblock %}
{% block block_post_menu %}
<div class="post-menu pt-4"></div>
{% endblock %}
{% block js %}
{{ parent() }}
{% endblock %}