36 lines
894 B
Twig
36 lines
894 B
Twig
{{ csrf_input }}
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
{{ field('name', item.name, "Nom du produit") }}
|
|
|
|
</div>
|
|
<div class="col-md-4">
|
|
{{ field('quantite', item.quantite, "Quantité") }}
|
|
|
|
</div>
|
|
<div class="col-md-4">
|
|
{{ field('prix', item.prix, "Prix") }}
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
{{ field('image', item.slug, "Image", {type: 'file'}) }}
|
|
</div>
|
|
<div class="col-md-4">
|
|
{% if item.image %}
|
|
<img src="{{ item.thumb }}" alt="" style="width:100%;">
|
|
{% endif %}
|
|
</div>
|
|
|
|
|
|
<!-- <div class="col-md-4">
|
|
field('slug', item.slug, "Lien")
|
|
</div>-->
|
|
</div>
|
|
{{ field('content', item.content, "Description", {type: 'textarea'}) }}
|
|
|
|
{{ field('updated_at', item.updatedAt, "", {type: 'hidden'}) }}
|
|
{{ field('created_at', date(), "", {type: 'hidden'}) }}
|
|
{{ field('antenne_id', explodeUrl()[4], "", {type: 'hidden'}) }}
|