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

25
templates/product/edit.html.twig Executable file → Normal file
View file

@ -1,24 +1,13 @@
{% extends 'base.html.twig' %}
{% block title %}Edit Product{% endblock %}
{% block body %}
<h1>Product edit</h1>
<h1>Edit Product</h1>
{{ form_start(edit_form) }}
{{ form_widget(edit_form) }}
<input type="submit" value="Edit"/>
{{ form_end(edit_form) }}
{{ include('product/_form.html.twig', {'button_label': 'Update'}) }}
<ul>
<li>
<a class="btn btn-primary" href="{{ path('product_index') }}">
<i class="fa fa-arrow-left"></i>
Retour à la liste
</a>
</li>
<li>
{{ form_start(delete_form) }}
<input type="submit" value="Delete">
{{ form_end(delete_form) }}
</li>
</ul>
<a href="{{ path('app_product_index') }}">back to list</a>
{{ include('product/_delete_form.html.twig') }}
{% endblock %}