This commit is contained in:
Tykayn 2025-02-14 14:25:23 +01:00 committed by tykayn
parent b373892ddc
commit c44ac9c522
25 changed files with 485 additions and 26 deletions

View 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>

View file

@ -0,0 +1,4 @@
{{ form_start(form) }}
{{ form_widget(form) }}
<button class="btn">{{ button_label|default('Save') }}</button>
{{ form_end(form) }}

View 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 %}

View 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 %}

View 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 %}

View 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 %}