mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-25 00:53:48 +00:00
fix routes and translatable string in admin prototype
ref #12 ref #13 ref #14 ref #15
This commit is contained in:
@@ -1,30 +1,30 @@
|
||||
chill_event_admin:
|
||||
chill_eventtype_admin:
|
||||
path: /
|
||||
defaults: { _controller: "ChillEventBundle:EventType:index" }
|
||||
|
||||
chill_event_admin_show:
|
||||
chill_eventtype_admin_show:
|
||||
path: /{id}/show
|
||||
defaults: { _controller: "ChillEventBundle:EventType:show" }
|
||||
|
||||
chill_event_admin_new:
|
||||
chill_eventtype_admin_new:
|
||||
path: /new
|
||||
defaults: { _controller: "ChillEventBundle:EventType:new" }
|
||||
|
||||
chill_event_admin_create:
|
||||
chill_eventtype_admin_create:
|
||||
path: /create
|
||||
defaults: { _controller: "ChillEventBundle:EventType:create" }
|
||||
methods: POST
|
||||
|
||||
chill_event_admin_edit:
|
||||
chill_eventtype_admin_edit:
|
||||
path: /{id}/edit
|
||||
defaults: { _controller: "ChillEventBundle:EventType:edit" }
|
||||
|
||||
chill_event_admin_update:
|
||||
chill_eventtype_admin_update:
|
||||
path: /{id}/update
|
||||
defaults: { _controller: "ChillEventBundle:EventType:update" }
|
||||
methods: [POST, PUT]
|
||||
|
||||
chill_event_admin_delete:
|
||||
chill_eventtype_admin_delete:
|
||||
path: /{id}/delete
|
||||
defaults: { _controller: "ChillEventBundle:EventType:delete" }
|
||||
methods: [POST, DELETE]
|
||||
|
@@ -1,30 +1,30 @@
|
||||
fr_admin_event_status:
|
||||
chill_event_admin_status:
|
||||
path: /
|
||||
defaults: { _controller: "ChillEventBundle:Status:index" }
|
||||
|
||||
fr_admin_event_status_show:
|
||||
chill_event_admin_status_show:
|
||||
path: /{id}/show
|
||||
defaults: { _controller: "ChillEventBundle:Status:show" }
|
||||
|
||||
fr_admin_event_status_new:
|
||||
chill_event_admin_status_new:
|
||||
path: /new
|
||||
defaults: { _controller: "ChillEventBundle:Status:new" }
|
||||
|
||||
fr_admin_event_status_create:
|
||||
chill_event_admin_status_create:
|
||||
path: /create
|
||||
defaults: { _controller: "ChillEventBundle:Status:create" }
|
||||
methods: POST
|
||||
|
||||
fr_admin_event_status_edit:
|
||||
chill_event_admin_status_edit:
|
||||
path: /{id}/edit
|
||||
defaults: { _controller: "ChillEventBundle:Status:edit" }
|
||||
|
||||
fr_admin_event_status_update:
|
||||
chill_event_admin_status_update:
|
||||
path: /{id}/update
|
||||
defaults: { _controller: "ChillEventBundle:Status:update" }
|
||||
methods: [POST, PUT]
|
||||
|
||||
fr_admin_event_status_delete:
|
||||
chill_event_admin_status_delete:
|
||||
path: /{id}/delete
|
||||
defaults: { _controller: "ChillEventBundle:Status:delete" }
|
||||
methods: [POST, DELETE]
|
||||
|
@@ -39,3 +39,10 @@ services:
|
||||
- "@chill_event.repository.status"
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
chill.event.form.role_type:
|
||||
class: Chill\EventBundle\Form\RoleType
|
||||
arguments:
|
||||
- "@chill.main.helper.translatable_string"
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin') }}">
|
||||
<a href="{{ path('chill_eventtype_admin') }}">
|
||||
Back to the list
|
||||
</a>
|
||||
</li>
|
||||
|
@@ -15,16 +15,16 @@
|
||||
<tbody>
|
||||
{% for entity in entities %}
|
||||
<tr>
|
||||
<td><a href="{{ path('{_locale}_admin_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
|
||||
<td>{{ entity.name }}</td>
|
||||
<td><a href="{{ path('chill_eventtype_admin_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
|
||||
<td>{{ entity.name|localize_translatable_string }}</td>
|
||||
<td>{{ entity.active }}</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin_show', { 'id': entity.id }) }}">show</a>
|
||||
<a href="{{ path('chill_eventtype_admin_show', { 'id': entity.id }) }}">show</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin_edit', { 'id': entity.id }) }}">edit</a>
|
||||
<a href="{{ path('chill_eventtype_admin_show', { 'id': entity.id }) }}">edit</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin_new') }}">
|
||||
<a href="{{ path('chill_eventtype_admin_new') }}">
|
||||
Create a new entry
|
||||
</a>
|
||||
</li>
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin') }}">
|
||||
<a href="{{ path('chill_eventtype_admin') }}">
|
||||
Back to the list
|
||||
</a>
|
||||
</li>
|
||||
|
@@ -11,7 +11,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<td>{{ entity.name }}</td>
|
||||
<td>{{ entity.name|localize_translatable_string }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Active</th>
|
||||
@@ -22,12 +22,12 @@
|
||||
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin') }}">
|
||||
<a href="{{ path('chill_eventtype_admin') }}">
|
||||
Back to the list
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin_edit', { 'id': entity.id }) }}">
|
||||
<a href="{{ path('chill_eventtype_admin_edit', { 'id': entity.id }) }}">
|
||||
Edit
|
||||
</a>
|
||||
</li>
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin_role') }}">
|
||||
<a href="{{ path('chill_event_admin_role') }}">
|
||||
Back to the list
|
||||
</a>
|
||||
</li>
|
||||
|
@@ -15,16 +15,16 @@
|
||||
<tbody>
|
||||
{% for entity in entities %}
|
||||
<tr>
|
||||
<td><a href="{{ path('{_locale}_admin_role_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
|
||||
<td>{{ entity.name }}</td>
|
||||
<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.active }}</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin_role_show', { 'id': entity.id }) }}">show</a>
|
||||
<a href="{{ path('chill_event_admin_role_show', { 'id': entity.id }) }}">show</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin_role_edit', { 'id': entity.id }) }}">edit</a>
|
||||
<a href="{{ path('chill_event_admin_role_edit', { 'id': entity.id }) }}">edit</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin_role_new') }}">
|
||||
<a href="{{ path('chill_event_admin_role_new') }}">
|
||||
Create a new entry
|
||||
</a>
|
||||
</li>
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin_role') }}">
|
||||
<a href="{{ path('chill_event_admin_role') }}">
|
||||
Back to the list
|
||||
</a>
|
||||
</li>
|
||||
|
@@ -11,7 +11,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<td>{{ entity.name }}</td>
|
||||
<td>{{ entity.name|localize_translatable_string }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Active</th>
|
||||
@@ -22,12 +22,12 @@
|
||||
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin_role') }}">
|
||||
<a href="{{ path('chill_event_admin_role') }}">
|
||||
Back to the list
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('{_locale}_admin_role_edit', { 'id': entity.id }) }}">
|
||||
<a href="{{ path('chill_event_admin_role_edit', { 'id': entity.id }) }}">
|
||||
Edit
|
||||
</a>
|
||||
</li>
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
<a href="{{ path('fr_admin_event_status') }}">
|
||||
<a href="{{ path('chill_event_admin_status') }}">
|
||||
Back to the list
|
||||
</a>
|
||||
</li>
|
||||
|
@@ -15,16 +15,16 @@
|
||||
<tbody>
|
||||
{% for entity in entities %}
|
||||
<tr>
|
||||
<td><a href="{{ path('fr_admin_event_status_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
|
||||
<td>{{ entity.name }}</td>
|
||||
<td><a href="{{ path('chill_event_admin_status_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
|
||||
<td>{{ entity.name|localize_translatable_string }}</td>
|
||||
<td>{{ entity.active }}</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('fr_admin_event_status_show', { 'id': entity.id }) }}">show</a>
|
||||
<a href="{{ path('chill_event_admin_status_show', { 'id': entity.id }) }}">show</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('fr_admin_event_status_edit', { 'id': entity.id }) }}">edit</a>
|
||||
<a href="{{ path('chill_event_admin_status_edit', { 'id': entity.id }) }}">edit</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('fr_admin_event_status_new') }}">
|
||||
<a href="{{ path('chill_event_admin_status_new') }}">
|
||||
Create a new entry
|
||||
</a>
|
||||
</li>
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
<a href="{{ path('fr_admin_event_status') }}">
|
||||
<a href="{{ path('chill_event_admin_status') }}">
|
||||
Back to the list
|
||||
</a>
|
||||
</li>
|
||||
|
@@ -11,7 +11,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<td>{{ entity.name }}</td>
|
||||
<td>{{ entity.name|localize_translatable_string }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Active</th>
|
||||
@@ -22,12 +22,12 @@
|
||||
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
<a href="{{ path('fr_admin_event_status') }}">
|
||||
<a href="{{ path('chill_event_admin_status') }}">
|
||||
Back to the list
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('fr_admin_event_status_edit', { 'id': entity.id }) }}">
|
||||
<a href="{{ path('chill_event_admin_status_edit', { 'id': entity.id }) }}">
|
||||
Edit
|
||||
</a>
|
||||
</li>
|
||||
|
Reference in New Issue
Block a user