person: can reopen an accompanying course

This commit is contained in:
nobohan
2022-01-19 21:46:40 +01:00
parent 9d6afc4bb2
commit d4efe81dbb
6 changed files with 96 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
{% extends "@ChillPerson/AccompanyingCourse/layout.html.twig" %}
{% block title %}{{ 'Close accompanying course'|trans }}{% endblock %}
{% block content %}
<h1>{{ "Close accompanying course"|trans }}</h1>

View File

@@ -0,0 +1,27 @@
{% extends "@ChillPerson/AccompanyingCourse/layout.html.twig" %}
{% block title %}{{ 'Reopen accompanying course'|trans }}{% endblock %}
{% block content %}
<h1>{{ "Reopen accompanying course"|trans }}</h1>
{{ form_start(form) }}
{% set accompanying_course_id = null %}
{% if accompanyingCourse %}
{% set accompanying_course_id = accompanyingCourse.id %}
{% endif %}
<ul class="record_actions sticky-form-buttons">
<li class="cancel">
<a href="{{ chill_return_path_or('chill_person_accompanying_course_index', {'accompanying_period_id' : accompanyingCourse.id}) }}" class="btn btn-cancel">
{{ 'Return'|trans }}
</a>
</li>
<li>
<button class="btn btn-update" type="submit">{{ 'Save'|trans }}</button>
</li>
</ul>
{{ form_end(form) }}
{% endblock %}