admin area, configuration menu

This commit is contained in:
Mathieu Jaumotte 2021-02-05 22:49:00 +01:00
parent 31176f8bc8
commit 41444f4157
4 changed files with 25 additions and 5 deletions

View File

@ -30,8 +30,19 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
*/
class AdminController extends AbstractController
{
/**
* @return \Symfony\Component\HttpFoundation\Response
*/
public function indexAction()
{
return $this->render('ChillEventBundle:Admin:layout.html.twig');
}
/**
* @return \Symfony\Component\HttpFoundation\RedirectResponse
*/
public function redirectToAdminIndexAction()
{
return $this->redirectToRoute('chill_main_admin_central');
}
}

View File

@ -8,7 +8,7 @@
<thead>
<tr>
<th>{{ 'Id'|trans }}</th>
<th>{{ 'Label'|trans }}</th>
<th>{{ 'Type'|trans }}</th>
<th>{{ 'Active'|trans }}</th>
<th>{{ 'Actions'|trans }}</th>
</tr>

View File

@ -15,10 +15,19 @@ chill_event_admin:
options:
menus:
admin_section:
order: 1000
order: 2100
label: "Events configuration"
icons: ['calendar']
chill_event_admin_redirect_to_admin_index:
path: /{_locale}/admin/event_redirect_to_main
controller: Chill\EventBundle\Controller\AdminController::redirectToAdminIndexAction
options:
menus:
admin_events:
order: 0
label: Main admin menu
chill_event_admin_status:
resource: "@ChillEventBundle/config/routes/status.yaml"
prefix: /{_locale}/admin/event/status

View File

@ -84,10 +84,10 @@ Select a format: Choisir un format
Export: Exporter
Events configuration: Événements
Events configuration: Config des événements
Events configuration menu: Menu des événements
Event status: Statuts
Event roles: Rôles
Event status: Statuts par type d'événement
Event roles: Rôles par type d'événement
Event types: Types d'événements
EventType list: Liste des types d'événements
EventType: Types d'événements