list products when editing a category
This commit is contained in:
parent
2db69f1d7f
commit
a66d71b8d3
@ -3,19 +3,39 @@
|
|||||||
{% block body %}
|
{% block body %}
|
||||||
<h1>Productcategory edit</h1>
|
<h1>Productcategory edit</h1>
|
||||||
|
|
||||||
{{ form_start(edit_form) }}
|
<div class="row">
|
||||||
{{ form_widget(edit_form) }}
|
<div class="col-xs-12 col-sm-6">
|
||||||
<input type="submit" value="Edit" />
|
{{ form_start(edit_form) }}
|
||||||
{{ form_end(edit_form) }}
|
{{ form_widget(edit_form) }}
|
||||||
|
<input type="submit" value="Edit"/>
|
||||||
|
{{ form_end(edit_form) }}
|
||||||
|
<div class="padded">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary" href="{{ path('productcategory_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>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-12 col-sm-6">
|
||||||
|
|
||||||
|
<h2>{{ productCategory.products.length }}Produits associés</h2>
|
||||||
|
<div class="listing">
|
||||||
|
{% for p in productCategory.products %}
|
||||||
|
<a class="btn btn-default btn-block" href="{{ path('product_edit', { 'id': p.id }) }}">
|
||||||
|
{{ p.name }}
|
||||||
|
</a>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<a class="btn btn-primary" href="{{ path('productcategory_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>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user