{% extends 'Admin/layout.html.twig' %}

{% block body %}
    <h1>Liste des configurations</h1>

    <table>
        <thead>
            <tr>
                <th>Id</th>
                <th>Domaine</th>
                <th>Clé</th>
                <th>Valeur</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
        {% for config in configs %}
            <tr>
                <td><a href="{{ path('admin_settings_config_show', { 'id': config.id }) }}">{{ config.id }}</a></td>
                <td>{{ config.domain }}</td>
                <td>{{ config.key }}</td>
                <td>{{ config.value }}</td>
                <td>
                    <ul>
                        <li>
                            <a href="{{ path('admin_settings_config_show', { 'id': config.id }) }}">Voir</a>
                        </li>
                        <li>
                            <a href="{{ path('admin_settings_config_edit', { 'id': config.id }) }}">Editer</a>
                        </li>
                    </ul>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

    <ul>
        <li>
            <a href="{{ path('admin_settings_config_new') }}" class="btn btn-add">Ajouter une configuration</a>
        </li>
    </ul>
{% endblock %}
