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

{% block title %}Suggestion{% endblock %}

{% block body %}
    <h1>Suggestion</h1>

    <table class="table">
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ suggestion.id }}</td>
            </tr>
            <tr>
                <th>Titre</th>
                <td>{{ suggestion.titre }}</td>
            </tr>
            <tr>
                <th>Contenu</th>
                <td>{{ suggestion.contenu }}</td>
            </tr>
            <tr>
                <th>DateCreated</th>
                <td>{{ suggestion.dateCreated ? suggestion.dateCreated|date('Y-m-d H:i:s') : '' }}</td>
            </tr>
        </tbody>
    </table>

    <a href="{{ path('app_suggestion_index') }}">back to list</a>

    <a href="{{ path('app_suggestion_edit', {'id': suggestion.id}) }}">edit</a>

    {{ include('suggestion/_delete_form.html.twig') }}
{% endblock %}
