@model IEnumerable<Webzine.Entity.Artiste>

@{
    ViewData["Title"] = "Artiste";
}


<div class="container mt-4">
    <h1 class="mb-4">Artiste</h1>
    <hr />
    <a asp-action="Create" class="btn btn-primary mb-3">
        <i class="fa fa-plus"></i> Ajouter un nouvel artiste
    </a>
    <div class="table-responsive">
        <table class="table table-striped table-hover table-bordered table-sm">
            <thead class="table-active">
                <tr>
                    <th scope="col" class="p-2">Nom</th>
                    <th scope="col" class="text-center p-2" style="width: 100px;">Actions</th>
                </tr>
            </thead>
            <tbody>

                @foreach (var artiste in Model)
                {
                    <tr class="align-middle">
                        <td class="p-2">
                            @artiste.Nom
                        </td>
                        <td class="text-center p-2">

                            <a asp-action="Edit" asp-route-id="@artiste.IdArtiste">
                                <i class="fa fa-edit"></i>
                            </a>

                            <a asp-action="Delete" asp-route-id="@artiste.IdArtiste">
                                <i class="fa fa-trash"></i>
                            </a>

                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>