2018-03-15 16:04:00 +01:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
2018-03-15 16:31:12 +01:00
|
|
|
{% block title %}Hello !{% endblock %}
|
2018-03-15 16:04:00 +01:00
|
|
|
|
|
|
|
{% block body %}
|
2018-03-15 16:31:12 +01:00
|
|
|
<style>
|
|
|
|
.example-wrapper {
|
|
|
|
margin: 1em auto;
|
|
|
|
max-width: 800px;
|
|
|
|
width: 95%;
|
|
|
|
font: 18px/1.5 sans-serif;
|
|
|
|
}
|
2018-03-15 16:04:00 +01:00
|
|
|
|
2018-03-15 16:31:12 +01:00
|
|
|
.example-wrapper code {
|
|
|
|
background: #F5F5F5;
|
|
|
|
padding: 2px 6px;
|
|
|
|
}
|
|
|
|
</style>
|
2018-03-15 16:04:00 +01:00
|
|
|
|
2018-03-15 16:31:12 +01:00
|
|
|
<div class="example-wrapper">
|
|
|
|
<h1>Hello ! ✅</h1>
|
|
|
|
<fieldset>
|
|
|
|
|
|
|
|
<h2>
|
|
|
|
Catégories
|
|
|
|
</h2>
|
|
|
|
{% for c in categories %}
|
|
|
|
<h3>{{ c.name }}</h3>
|
|
|
|
{% for p in c.products %}
|
|
|
|
<button class="btn btn-default">
|
|
|
|
{{ p.name }}
|
|
|
|
</button>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
<footer>
|
|
|
|
|
|
|
|
This friendly message is coming from:
|
|
|
|
<ul>
|
|
|
|
<li>Your controller at <code>src/Controller/ProductController.php</code></li>
|
|
|
|
<li>Your template at <code>templates/product/index.html.twig</code></li>
|
|
|
|
</ul>
|
|
|
|
</footer>
|
|
|
|
</div>
|
2018-03-15 16:04:00 +01:00
|
|
|
{% endblock %}
|