prettyer editing a category

This commit is contained in:
Baptiste Lemoine 2018-07-19 18:05:49 +02:00
parent a66d71b8d3
commit b99550edc3
1 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block body %} {% block body %}
<h1>Productcategory edit</h1> <h1>Catégorie <strong> {{ productCategory.name }} </strong></h1>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-6"> <div class="col-xs-12 col-sm-6">
@ -12,12 +12,12 @@
<div class="padded"> <div class="padded">
<ul> <ul>
<li> <li>
<a class="btn btn-primary" href="{{ path('productcategory_index') }}"> <i <a class="btn btn-primary btn-block" href="{{ path('productcategory_index') }}"> <i
class="fa fa-arrow-left"></i> Retour à la liste</a> class="fa fa-arrow-left"></i> Retour à la liste</a>
</li> </li>
<li> <li>
{{ form_start(delete_form) }} {{ form_start(delete_form) }}
<input type="submit" value="Delete"> <input class="btn btn-warning btn-block" type="submit" value="Delete">
{{ form_end(delete_form) }} {{ form_end(delete_form) }}
</li> </li>
</ul> </ul>
@ -25,7 +25,7 @@
</div> </div>
<div class="col-xs-12 col-sm-6"> <div class="col-xs-12 col-sm-6">
<h2>{{ productCategory.products.length }}Produits associés</h2> <h2>{{ productCategory.products|length }} Produits associés</h2>
<div class="listing"> <div class="listing">
{% for p in productCategory.products %} {% for p in productCategory.products %}
<a class="btn btn-default btn-block" href="{{ path('product_edit', { 'id': p.id }) }}"> <a class="btn btn-default btn-block" href="{{ path('product_edit', { 'id': p.id }) }}">