templates + controller further adapted to work with accompanyingCourse. new and show methods don't work yet due to authorization/voter issues

templates adapted for use with accompanyingCourse tasks also
This commit is contained in:
2021-09-10 15:19:41 +02:00
parent 1fb14834b7
commit 5a936cd20b
4 changed files with 365 additions and 285 deletions

View File

@@ -15,30 +15,30 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
{% extends '@ChillPerson/Person/layout.html.twig' %}
{% extends layout %}
{% set activeRouteKey = 'chill_task_single_task_new' %}
{% block title %}{{ 'Task list'|trans }}{% endblock %}
{% block title %}
{{ 'Task list'|trans }}
{% endblock %}
{% macro thead() %}
{% endmacro %}
{% macro thead() %}{% endmacro %}
{% macro row(task) %}
{% endmacro %}
{% macro row(task) %}{% endmacro %}
{% block filtertasks %}
{% if person is not null %}
{% block personcontent %}
<div class="tasks">
{% include 'ChillTaskBundle:SingleTask:_list.html.twig' %}
</div>
{% endblock %}
{% else %}
{% block content %}
<div class="col-md-10 col-xxl tasks">
{% include 'ChillTaskBundle:SingleTask:_list.html.twig' %}
</div>
{% endblock %}
{% endif %}
{% if person is not null %}
{% block personcontent %}
<div class="tasks">
{% include 'ChillTaskBundle:SingleTask:_list.html.twig' %}
</div>
{% endblock %}
{% else %}
{% block content %}
<div class="col-md-10 col-xxl tasks">
{% include 'ChillTaskBundle:SingleTask:_list.html.twig' %}
</div>
{% endblock %}
{% endif %}
{% endblock %}