up templates

This commit is contained in:
Tykayn 2025-02-09 16:39:38 +01:00 committed by tykayn
parent 71bce538af
commit a39b6239b0
71 changed files with 1536 additions and 262 deletions

View file

@ -0,0 +1,4 @@
<form method="post" action="{{ path('app_group_of_products_delete', {'id': group_of_product.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ group_of_product.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 GroupOfProducts{% endblock %}
{% block body %}
<h1>Edit GroupOfProducts</h1>
{{ include('group_of_products/_form.html.twig', {'button_label': 'Update'}) }}
<a href="{{ path('app_group_of_products_index') }}">back to list</a>
{{ include('group_of_products/_delete_form.html.twig') }}
{% endblock %}

View file

@ -0,0 +1,35 @@
{% extends 'base.html.twig' %}
{% block title %}GroupOfProducts index{% endblock %}
{% block body %}
<h1>GroupOfProducts index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for group_of_product in group_of_products %}
<tr>
<td>{{ group_of_product.id }}</td>
<td>{{ group_of_product.name }}</td>
<td>
<a href="{{ path('app_group_of_products_show', {'id': group_of_product.id}) }}">show</a>
<a href="{{ path('app_group_of_products_edit', {'id': group_of_product.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="3">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_group_of_products_new') }}">Create new</a>
{% endblock %}

View file

@ -0,0 +1,11 @@
{% extends 'base.html.twig' %}
{% block title %}New GroupOfProducts{% endblock %}
{% block body %}
<h1>Create new GroupOfProducts</h1>
{{ include('group_of_products/_form.html.twig') }}
<a href="{{ path('app_group_of_products_index') }}">back to list</a>
{% endblock %}

View file

@ -0,0 +1,26 @@
{% extends 'base.html.twig' %}
{% block title %}GroupOfProducts{% endblock %}
{% block body %}
<h1>GroupOfProducts</h1>
<table class="table">
<tbody>
<tr>
<th>Id</th>
<td>{{ group_of_product.id }}</td>
</tr>
<tr>
<th>Name</th>
<td>{{ group_of_product.name }}</td>
</tr>
</tbody>
</table>
<a href="{{ path('app_group_of_products_index') }}">back to list</a>
<a href="{{ path('app_group_of_products_edit', {'id': group_of_product.id}) }}">edit</a>
{{ include('group_of_products/_delete_form.html.twig') }}
{% endblock %}