Merge pull request 'j1/feat/page_admin_artiste' (#72) from j1/feat/page_admin_artiste into dev
Reviewed-on: http://10.4.0.131/DI1-P4-E1/Webzine/pulls/72 Reviewed-by: Loic Masi <loic.masi@diiage.org>
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
@model Webzine.WebApplication.Areas.Administration.ViewModels.Artiste.GroupeArtisteViewModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Artiste";
|
||||
}
|
||||
|
||||
|
||||
<div class="container mt-4">
|
||||
<h1 class="mb-4">Artiste</h1>
|
||||
<hr />
|
||||
<a asp-action="" class="btn btn-primary mb-3">
|
||||
<i class="fa fa-plus"></i> Ajouter un nouvel titre
|
||||
</a>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-hover table-bordered">
|
||||
<thead class="table-active">
|
||||
<tr>
|
||||
<th scope="col">Nom de l'artiste</th>
|
||||
<th scope="col" class="text-center">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@* On groupe les artistes par nom *@
|
||||
@{
|
||||
var artistes = Model.Artistes
|
||||
.OrderBy(t => t.Nom); // Trie les artistes par ordre alphabétique
|
||||
}
|
||||
|
||||
@foreach (var artiste in artistes)
|
||||
{
|
||||
<tr class="align-middle">
|
||||
<td class="col-10">
|
||||
@artiste.Nom
|
||||
</td>
|
||||
<td class="text-center">
|
||||
|
||||
<a asp-action="Edit" asp-route-id="@artiste.IdArtiste"
|
||||
class="btn btn-sm btn-outline-primary">
|
||||
<i class="fa fa-pen"></i>
|
||||
</a>
|
||||
|
||||
<a asp-action="Delete" asp-route-id="@artiste.IdArtiste"
|
||||
class="btn btn-sm btn-outline-danger">
|
||||
<i class="fa fa-trash"></i>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user