first implementation of controller

This commit is contained in:
2018-04-16 15:09:50 +02:00
parent 1734727029
commit a02b9edc45
13 changed files with 509 additions and 18 deletions

View File

@@ -1 +1,3 @@
chill_task_controllers:
resource: "@ChillTaskBundle/Controller"
type: annotation

View File

@@ -0,0 +1,2 @@
services:

View File

@@ -0,0 +1,4 @@
services:
#chill_task.single_task_controller:
# class: Chill\TaskBundle\Controller\SingleTaskController
# autowire: true

View File

@@ -0,0 +1,10 @@
services:
chill_task.task_voter:
class: Chill\TaskBundle\Security\Authorization\TaskVoter
arguments:
- "@security.access.decision_manager"
- "@chill.main.security.authorization.helper"
- "@logger"
tags:
- { name: security.voter }
- { name: chill.role }

View File

@@ -0,0 +1,29 @@
{#
* Copyright (C) 2014, Champs Libres Cooperative SCRLFS, <http://www.champs-libres.coop>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
{% extends "ChillPersonBundle::layout.html.twig" %}
{% set activeRouteKey = 'chill_task_single_task_new' %}
{% set person = task.person %}
{% block title %}{{ 'New task'|trans }}{% endblock %}
{% block personcontent %}
<h1>{{ 'New task'|trans }}</h1>
{{ form(form) }}
{% endblock %}