fix title of page translations and coherency

This commit is contained in:
2021-08-22 22:24:46 +02:00
parent a0b914380b
commit 668b3e182e
7 changed files with 22 additions and 23 deletions

View File

@@ -1,10 +1,6 @@
{% extends '@ChillPerson/AccompanyingCourse/layout.html.twig' %}
{% set title = 'DRAFT' == accompanyingCourse.step ? 'New accompanying course' : 'Edit accompanying course' %}
{% block title %}
{{ title|trans }}
{% endblock %}
{% block title %}{%- if 'DRAFT' == accompanyingCourse.step -%}{{ 'New accompanying course'|trans }}{%- else -%}{{ 'Edit Accompanying Course'|trans }}{%- endif -%}{% endblock %}
{% block content %}
<div id="accompanying-course"></div> {# <== insert accompanyingCourse vue component #}