mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-06-20 01:44:42 +02:00
up cruds
This commit is contained in:
parent
b373892ddc
commit
c44ac9c522
25 changed files with 485 additions and 26 deletions
|
@ -12,6 +12,10 @@
|
|||
<th>Name</th>
|
||||
<th>Date_start</th>
|
||||
<th>Date_end</th>
|
||||
<th>FraisInscription</th>
|
||||
<th>FondDeCaisseAvant</th>
|
||||
<th>FondDeCaisseApres</th>
|
||||
<th>DateCreation</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -22,6 +26,10 @@
|
|||
<td>{{ festival.name }}</td>
|
||||
<td>{{ festival.dateStart ? festival.dateStart|date('Y-m-d') : '' }}</td>
|
||||
<td>{{ festival.dateEnd ? festival.dateEnd|date('Y-m-d') : '' }}</td>
|
||||
<td>{{ festival.fraisInscription }}</td>
|
||||
<td>{{ festival.fondDeCaisseAvant }}</td>
|
||||
<td>{{ festival.fondDeCaisseApres }}</td>
|
||||
<td>{{ festival.dateCreation ? festival.dateCreation|date('Y-m-d') : '' }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_festival_show', {'id': festival.id}) }}">show</a>
|
||||
<a href="{{ path('app_festival_edit', {'id': festival.id}) }}">edit</a>
|
||||
|
@ -29,7 +37,7 @@
|
|||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="5">no records found</td>
|
||||
<td colspan="9">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
|
|
@ -23,6 +23,22 @@
|
|||
<th>Date_end</th>
|
||||
<td>{{ festival.dateEnd ? festival.dateEnd|date('Y-m-d') : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>FraisInscription</th>
|
||||
<td>{{ festival.fraisInscription }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>FondDeCaisseAvant</th>
|
||||
<td>{{ festival.fondDeCaisseAvant }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>FondDeCaisseApres</th>
|
||||
<td>{{ festival.fondDeCaisseApres }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>DateCreation</th>
|
||||
<td>{{ festival.dateCreation ? festival.dateCreation|date('Y-m-d') : '' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
<th>Name</th>
|
||||
<th>Price</th>
|
||||
<th>Stock</th>
|
||||
<th>Image</th>
|
||||
<th>Comment</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -22,6 +24,8 @@
|
|||
<td>{{ product.name }}</td>
|
||||
<td>{{ product.price }}</td>
|
||||
<td>{{ product.stock }}</td>
|
||||
<td>{{ product.image }}</td>
|
||||
<td>{{ product.comment }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_product_show', {'id': product.id}) }}">show</a>
|
||||
<a href="{{ path('app_product_edit', {'id': product.id}) }}">edit</a>
|
||||
|
@ -29,7 +33,7 @@
|
|||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="5">no records found</td>
|
||||
<td colspan="7">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
|
|
@ -23,6 +23,14 @@
|
|||
<th>Stock</th>
|
||||
<td>{{ product.stock }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Image</th>
|
||||
<td>{{ product.image }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Comment</th>
|
||||
<td>{{ product.comment }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Note</th>
|
||||
<th>Products</th>
|
||||
<th>Sum</th>
|
||||
<th>Reduction</th>
|
||||
<th>actions</th>
|
||||
|
@ -21,7 +20,6 @@
|
|||
<tr>
|
||||
<td>{{ selling.id }}</td>
|
||||
<td>{{ selling.note }}</td>
|
||||
<td>{{ selling.products }}</td>
|
||||
<td>{{ selling.sum }}</td>
|
||||
<td>{{ selling.reduction }}</td>
|
||||
<td>
|
||||
|
@ -31,7 +29,7 @@
|
|||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="6">no records found</td>
|
||||
<td colspan="5">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
|
|
@ -15,10 +15,6 @@
|
|||
<th>Note</th>
|
||||
<td>{{ selling.note }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Products</th>
|
||||
<td>{{ selling.products }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Sum</th>
|
||||
<td>{{ selling.sum }}</td>
|
||||
|
|
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