{% extends 'base.html.twig' %}

{% block title %}Les lieux ayant des notes{% endblock %}

{% block body %}
<div class="container">
    <h1>Commerces avec une note</h1>
    <table class="table table-striped table-hover table-responsive table-sort">
        <thead>
            <tr>
                <th>Nom</th>
                <th>Code insee</th>
                <th>Note</th>
                <th>contenu de note</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
            {% for place in places %}
                <tr>
                    <td><a href="{{ path('app_admin_commerce', {'id': place.id}) }}">{{ place.name }}
                    <i class="bi bi-pencil"></i>
                    </a>
                    
                    </td>
                    <td>
                        {{place.zipcode}}
                    </td>
                    <td>{{ place.note }}</td>
                    <td>{{ place.noteContent }}</td>
                    <td><a class="btn btn-primary" href="{{ path('app_admin_commerce', {'id': place.id}) }}">
                    <i class="bi bi-pencil"></i>
                    </a></td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
</div>
{% endblock %}