Files
webzine/Webzine.WebApplication/Areas/Administration/Views/Artiste/Index.cshtml
2026-03-25 15:35:10 +01:00

46 lines
1.4 KiB
Plaintext

@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">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>