mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-11-19 23:00:37 +01:00
up templates
This commit is contained in:
parent
71bce538af
commit
a39b6239b0
71 changed files with 1536 additions and 262 deletions
4
templates/selling/_delete_form.html.twig
Normal file
4
templates/selling/_delete_form.html.twig
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<form method="post" action="{{ path('app_selling_delete', {'id': selling.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ selling.id) }}">
|
||||
<button class="btn">Delete</button>
|
||||
</form>
|
||||
4
templates/selling/_form.html.twig
Normal file
4
templates/selling/_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/selling/edit.html.twig
Normal file
13
templates/selling/edit.html.twig
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Edit Selling{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Edit Selling</h1>
|
||||
|
||||
{{ include('selling/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
|
||||
<a href="{{ path('app_selling_index') }}">back to list</a>
|
||||
|
||||
{{ include('selling/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
||||
41
templates/selling/index.html.twig
Normal file
41
templates/selling/index.html.twig
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Selling index{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Selling index</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Note</th>
|
||||
<th>Products</th>
|
||||
<th>Sum</th>
|
||||
<th>Reduction</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for selling in sellings %}
|
||||
<tr>
|
||||
<td>{{ selling.id }}</td>
|
||||
<td>{{ selling.note }}</td>
|
||||
<td>{{ selling.products }}</td>
|
||||
<td>{{ selling.sum }}</td>
|
||||
<td>{{ selling.reduction }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_selling_show', {'id': selling.id}) }}">show</a>
|
||||
<a href="{{ path('app_selling_edit', {'id': selling.id}) }}">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="6">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_selling_new') }}">Create new</a>
|
||||
{% endblock %}
|
||||
11
templates/selling/new.html.twig
Normal file
11
templates/selling/new.html.twig
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}New Selling{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Create new Selling</h1>
|
||||
|
||||
{{ include('selling/_form.html.twig') }}
|
||||
|
||||
<a href="{{ path('app_selling_index') }}">back to list</a>
|
||||
{% endblock %}
|
||||
38
templates/selling/show.html.twig
Normal file
38
templates/selling/show.html.twig
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Selling{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Selling</h1>
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<td>{{ selling.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Reduction</th>
|
||||
<td>{{ selling.reduction }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_selling_index') }}">back to list</a>
|
||||
|
||||
<a href="{{ path('app_selling_edit', {'id': selling.id}) }}">edit</a>
|
||||
|
||||
{{ include('selling/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue