mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
admin: admin section for calendar
This commit is contained in:
parent
fd67f327ae
commit
3f399296c8
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Chill is a software for social workers
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view
|
||||||
|
* the LICENSE file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Chill\CalendarBundle\Controller;
|
||||||
|
|
||||||
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||||
|
use Symfony\Component\Routing\Annotation\Route;
|
||||||
|
|
||||||
|
class AdminController extends AbstractController
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Calendar admin
|
||||||
|
*
|
||||||
|
* @Route("/{_locale}/admin/calendar", name="chill_calendar_admin_index")
|
||||||
|
*/
|
||||||
|
public function indexAdminAction()
|
||||||
|
{
|
||||||
|
return $this->render('ChillCalendarBundle:Admin:index.html.twig');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -33,7 +33,9 @@ class AdminMenuBuilder implements LocalMenuBuilderInterface
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$menu->addChild('Calendar')
|
$menu->addChild('Calendar', [
|
||||||
|
'route' => 'chill_calendar_admin_index',
|
||||||
|
])
|
||||||
->setAttribute('class', 'list-group-item-header')
|
->setAttribute('class', 'list-group-item-header')
|
||||||
->setExtras(['order' => 6000, 'header' => true]);
|
->setExtras(['order' => 6000, 'header' => true]);
|
||||||
|
|
||||||
@ -44,6 +46,6 @@ class AdminMenuBuilder implements LocalMenuBuilderInterface
|
|||||||
|
|
||||||
public static function getMenuIds(): array
|
public static function getMenuIds(): array
|
||||||
{
|
{
|
||||||
return ['admin_section'];
|
return ['admin_section', 'admin_calendar'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
{% extends "@ChillMain/Admin/layoutWithVerticalMenu.html.twig" %}
|
||||||
|
|
||||||
|
{% block vertical_menu_content %}
|
||||||
|
{{ chill_menu('admin_calendar', {
|
||||||
|
'layout': '@ChillCalendar/Admin/menu_calendar.html.twig',
|
||||||
|
}) }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block layout_wvm_content %}
|
||||||
|
{% block admin_content %}<!-- block content empty -->
|
||||||
|
<h1>{{ 'Calendar configuration' |trans }}</h1>
|
||||||
|
{% endblock %}
|
||||||
|
{% endblock %}
|
@ -0,0 +1,2 @@
|
|||||||
|
{% extends "@ChillMain/Menu/verticalMenu.html.twig" %}
|
||||||
|
{% block v_menu_title %}{{ 'Calendar configuration'|trans }}{% endblock %}
|
@ -27,6 +27,7 @@ From the day: Du
|
|||||||
to the day: au
|
to the day: au
|
||||||
Transform to activity: Transformer en échange
|
Transform to activity: Transformer en échange
|
||||||
canceledBy: supprimé par
|
canceledBy: supprimé par
|
||||||
|
Calendar configuration: Gestion des rendez-vous
|
||||||
|
|
||||||
crud:
|
crud:
|
||||||
calendar_cancel-reason:
|
calendar_cancel-reason:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user