mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
first implementation of controller
This commit is contained in:
@@ -1 +1,3 @@
|
||||
|
||||
chill_task_controllers:
|
||||
resource: "@ChillTaskBundle/Controller"
|
||||
type: annotation
|
||||
|
2
Resources/config/services.yml
Normal file
2
Resources/config/services.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
services:
|
||||
|
4
Resources/config/services/controller.yml
Normal file
4
Resources/config/services/controller.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
services:
|
||||
#chill_task.single_task_controller:
|
||||
# class: Chill\TaskBundle\Controller\SingleTaskController
|
||||
# autowire: true
|
10
Resources/config/services/security.yml
Normal file
10
Resources/config/services/security.yml
Normal 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 }
|
29
Resources/views/SingleTask/new.html.twig
Normal file
29
Resources/views/SingleTask/new.html.twig
Normal 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 %}
|
Reference in New Issue
Block a user