Add Chill context for event admins pages

This commit is contained in:
2019-09-26 20:24:40 +02:00
parent 3274ddb496
commit 7ac7def366
20 changed files with 195 additions and 42 deletions

View File

@@ -1,7 +1,8 @@
{% extends '::base.html.twig' %}
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
{% block body -%}
<h1>Role edit</h1>
{% block admin_content -%}
<h1>{{ 'Role edit'|trans }}</h1>
{{ form(edit_form) }}

View File

@@ -1,13 +1,15 @@
{% extends '::base.html.twig' %}
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
{% block body -%}
<h1>Role list</h1>
{% block admin_content -%}
<h1>{{ 'Role list'|trans }}</h1>
<table class="records_list">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Type</th>
<th>Active</th>
<th>Actions</th>
</tr>
@@ -17,6 +19,7 @@
<tr>
<td><a href="{{ path('chill_event_admin_role_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
<td>{{ entity.name|localize_translatable_string }}</td>
<td>{{ entity.type.name|localize_translatable_string }}</td>
<td>{{ entity.active }}</td>
<td>
<ul>

View File

@@ -1,7 +1,8 @@
{% extends '::base.html.twig' %}
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
{% block body -%}
<h1>Role creation</h1>
{% block admin_content -%}
<h1>{{ 'Role creation'|trans }}</h1>
{{ form(form) }}

View File

@@ -1,7 +1,8 @@
{% extends '::base.html.twig' %}
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
{% block body -%}
<h1>Role</h1>
{% block admin_content -%}
<h1>{{ 'Role'|trans }}</h1>
<table class="record_properties">
<tbody>