mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
access granted condition lifted temporarily to show the 'add new task' button on index page for Person
This commit is contained in:
parent
1403ee2ba5
commit
262fefa92f
@ -203,17 +203,18 @@
|
|||||||
<h2>{{ 'Tasks'|trans }}</h2>
|
<h2>{{ 'Tasks'|trans }}</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if person is not null and is_granted('CHILL_TASK_TASK_CREATE', person) %}
|
{# TODO reimplement right to create task. #}
|
||||||
<ul class="record_actions">
|
{# {% if person is not null and is_granted('CHILL_TASK_TASK_CREATE', person) %} #}
|
||||||
<li>
|
<ul class="record_actions">
|
||||||
{% if person is not null %}
|
<li>
|
||||||
<a href="{{ path('chill_task_single_task_new', {'person_id': person.id}) }}" class="btn btn-create">
|
{% if person is not null %}
|
||||||
{{ 'Add a new task' | trans }}
|
<a href="{{ path('chill_task_single_task_new', {'person_id': person.id}) }}" class="btn btn-create">
|
||||||
</a>
|
{{ 'Add a new task' | trans }}
|
||||||
{% endif %}
|
</a>
|
||||||
</li>
|
{% endif %}
|
||||||
</ul>
|
</li>
|
||||||
{% endif %}
|
</ul>
|
||||||
|
{# {% endif %} #}
|
||||||
|
|
||||||
{% if single_task_ended_tasks is defined %}
|
{% if single_task_ended_tasks is defined %}
|
||||||
{{ helper.date_status('Tasks with expired deadline', single_task_ended_tasks, single_task_ended_count, single_task_ended_paginator, 'ended', isSingleStatus, person) }}
|
{{ helper.date_status('Tasks with expired deadline', single_task_ended_tasks, single_task_ended_count, single_task_ended_paginator, 'ended', isSingleStatus, person) }}
|
||||||
|
@ -31,14 +31,14 @@
|
|||||||
{% if person is not null %}
|
{% if person is not null %}
|
||||||
{% block personcontent %}
|
{% block personcontent %}
|
||||||
<div class="tasks">
|
<div class="tasks">
|
||||||
{% include '@ChillTask/SingleTask/_list.html.twig' %}
|
{% include '@ChillTask/SingleTask/Person/list.html.twig' %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-10 col-xxl tasks">
|
<div class="col-md-10 col-xxl tasks">
|
||||||
{% include '@ChillTask/SingleTask/_listCourse.html.twig' %}
|
{% include '@ChillTask/SingleTask/AccompanyingCourse/list.html.twig' %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user