mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-10-09 17:02:47 +02:00
up cruds
This commit is contained in:
parent
b373892ddc
commit
c44ac9c522
25 changed files with 485 additions and 26 deletions
4
templates/serie_festival/_delete_form.html.twig
Normal file
4
templates/serie_festival/_delete_form.html.twig
Normal file
|
@ -0,0 +1,4 @@
|
|||
<form method="post" action="{{ path('app_serie_festival_delete', {'id': serie_festival.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ serie_festival.id) }}">
|
||||
<button class="btn">Delete</button>
|
||||
</form>
|
4
templates/serie_festival/_form.html.twig
Normal file
4
templates/serie_festival/_form.html.twig
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{ form_start(form) }}
|
||||
{{ form_widget(form) }}
|
||||
<button class="btn">{{ button_label|default('Save') }}</button>
|
||||
{{ form_end(form) }}
|
13
templates/serie_festival/edit.html.twig
Normal file
13
templates/serie_festival/edit.html.twig
Normal file
|
@ -0,0 +1,13 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Edit SerieFestival{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Edit SerieFestival</h1>
|
||||
|
||||
{{ include('serie_festival/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
|
||||
<a href="{{ path('app_serie_festival_index') }}">back to list</a>
|
||||
|
||||
{{ include('serie_festival/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
37
templates/serie_festival/index.html.twig
Normal file
37
templates/serie_festival/index.html.twig
Normal file
|
@ -0,0 +1,37 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}SerieFestival index{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>SerieFestival index</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>DateCreation</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for serie_festival in serie_festivals %}
|
||||
<tr>
|
||||
<td>{{ serie_festival.id }}</td>
|
||||
<td>{{ serie_festival.name }}</td>
|
||||
<td>{{ serie_festival.dateCreation ? serie_festival.dateCreation|date('Y-m-d') : '' }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_serie_festival_show', {'id': serie_festival.id}) }}">show</a>
|
||||
<a href="{{ path('app_serie_festival_edit', {'id': serie_festival.id}) }}">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="4">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_serie_festival_new') }}">Create new</a>
|
||||
{% endblock %}
|
11
templates/serie_festival/new.html.twig
Normal file
11
templates/serie_festival/new.html.twig
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}New SerieFestival{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Create new SerieFestival</h1>
|
||||
|
||||
{{ include('serie_festival/_form.html.twig') }}
|
||||
|
||||
<a href="{{ path('app_serie_festival_index') }}">back to list</a>
|
||||
{% endblock %}
|
30
templates/serie_festival/show.html.twig
Normal file
30
templates/serie_festival/show.html.twig
Normal file
|
@ -0,0 +1,30 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}SerieFestival{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>SerieFestival</h1>
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<td>{{ serie_festival.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<td>{{ serie_festival.name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>DateCreation</th>
|
||||
<td>{{ serie_festival.dateCreation ? serie_festival.dateCreation|date('Y-m-d') : '' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_serie_festival_index') }}">back to list</a>
|
||||
|
||||
<a href="{{ path('app_serie_festival_edit', {'id': serie_festival.id}) }}">edit</a>
|
||||
|
||||
{{ include('serie_festival/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue