diff --git a/config/routes/task.yaml b/config/routes/task.yaml new file mode 100644 index 0000000..45cc417 --- /dev/null +++ b/config/routes/task.yaml @@ -0,0 +1,3 @@ +task_tasks: + path: /tasks + controller: App\Controller\TaskController::tasks \ No newline at end of file diff --git a/src/Controller/TaskController.php b/src/Controller/TaskController.php new file mode 100644 index 0000000..fada10b --- /dev/null +++ b/src/Controller/TaskController.php @@ -0,0 +1,14 @@ +render('task/tasks.html.twig', []); + } +} \ No newline at end of file diff --git a/templates/_includes/html/base.html.twig b/templates/_includes/html/base.html.twig index 87f70e1..e430f0b 100644 --- a/templates/_includes/html/base.html.twig +++ b/templates/_includes/html/base.html.twig @@ -37,7 +37,8 @@
  • {% include '_includes/html/component/navLink.html.twig' with {route: 'main_home', icon: 'icofont-home', name: 'Accueil'} %}
  • -
  • {% include '_includes/html/component/navLink.html.twig' with {route: 'activity_activities', icon: 'icofont-listing-box', name: 'Activités'} %}
  • +
  • {% include '_includes/html/component/navLink.html.twig' with {route: 'activity_activities', icon: 'icofont-listing-box', name: 'Activités'} %} + {% include '_includes/html/component/navLink.html.twig' with {route: 'task_tasks', icon: 'icofont-checked', name: 'Tâches'} %}
  • {% include '_includes/html/component/navLink.html.twig' with {route: 'actor_actors', icon: 'icofont-people', name: 'Acteurs'} %}
  • diff --git a/templates/task/tasks.html.twig b/templates/task/tasks.html.twig new file mode 100644 index 0000000..3da609f --- /dev/null +++ b/templates/task/tasks.html.twig @@ -0,0 +1,7 @@ +{% extends '_includes/html/base.html.twig' %} + +{% set pageName='Tâches' %} +{% set page='Tâches' %} + +{% block pageContent %} +{% endblock %} \ No newline at end of file