{{!
    @template local_kid/admin_niveaux

    * niveaux - array of { code, libelle, couleur, sortorder, codeadesi, renameurl }
}}
<div class="fr-scope">
<div class="fr-table">
    <table>
        <caption>{{#str}}niveau_libelle, local_kid{{/str}}</caption>
        <thead>
            <tr>
                <th scope="col">{{#str}}niveau_code, local_kid{{/str}}</th>
                <th scope="col">{{#str}}niveau_libelle, local_kid{{/str}}</th>
                <th scope="col">{{#str}}niveau_couleur, local_kid{{/str}}</th>
                <th scope="col">{{#str}}niveau_sortorder, local_kid{{/str}}</th>
                <th scope="col">{{#str}}niveau_codeadesi, local_kid{{/str}}</th>
                <th scope="col">{{#str}}promotion_col_actions, local_kid{{/str}}</th>
            </tr>
        </thead>
        <tbody>
            {{#niveaux}}
            <tr>
                <td>{{code}}</td>
                <td>{{libelle}}</td>
                <td><span style="display:inline-block;width:0.9rem;height:0.9rem;background:{{couleur}};border:1px solid var(--kid-border);vertical-align:middle;"></span> {{couleur}}</td>
                <td>{{sortorder}}</td>
                <td>{{codeadesi}}</td>
                <td><a class="fr-link" href="{{renameurl}}">{{#str}}action_rename, local_kid{{/str}}</a></td>
            </tr>
            {{/niveaux}}
        </tbody>
    </table>
</div>
</div>
