feat: renommer le dossier Administrations en Administration pour une meilleure cohérence

This commit is contained in:
mirage
2026-03-06 10:34:58 +01:00
parent 154632f973
commit fb49a19131
17 changed files with 16 additions and 16 deletions

View File

@@ -0,0 +1,42 @@
@model Webzine.WebApplication.Areas.Administration.ViewModels.Commentaire.CommentaireDeleteViewModel
@{
ViewData["Title"] = "Supprimer un commentaire";
}
<div class="container mt-4">
<h1 class="mb-3">Supprimer un commentaire</h1>
<hr />
<p class="mb-4">
Êtes-vous sûr de vouloir supprimer le commentaire suivant ?
</p>
<div class="mb-4">
<h4>@Model.Contenu</h4>
<div class="text-muted">
— <strong>@Model.Auteur</strong>
le @Model.DateCreation.ToString("dd/MM/yyyy HH:mm:ss")
sur <em>@Model.TitreLibelle</em>
</div>
</div>
<form asp-action="Delete" method="post">
<input type="hidden" asp-for="IdCommentaire" />
<button type="submit" class="btn btn-danger">
Supprimer
</button>
</form>
<br/>
<br/>
<a asp-action="Index"
class="btn-link">
Retour à l'administration des commentaires
</a>
</div>

View File

@@ -0,0 +1,48 @@
@model Webzine.WebApplication.Areas.Administration.ViewModels.Commentaire.CommentaireViewModel
@{
ViewData["Title"] = "Commentaires";
}
<div class="justify-content-center m-5">
<h1 class="mb-4">Commentaires</h1>
<div class="table-responsive">
<table class="table table-striped table-hover table-bordered">
<thead class="table-light">
<tr>
<th scope="col">Titre</th>
<th scope="col">Auteur</th>
<th scope="col">Commentaire</th>
<th scope="col">Date de création</th>
<th scope="col" class="text-center">Actions</th>
</tr>
</thead>
<tbody>
@foreach (Webzine.Entity.Commentaire commentaire in Model.Commentaires)
{
<tr class="align-middle">
<td>
@commentaire.Titre.Libelle
</td>
<td>
@commentaire.Auteur
</td>
<td>
@commentaire.Contenu
</td>
<td>
@commentaire.DateCreation.ToString("dd/MM/yyyy HH:mm:ss")
</td>
<td class="text-center">
<a asp-action="Delete" asp-route-id="@commentaire.IdCommentaire" class="d-inline btn btn-link text-primary">
<i class="fas fa-trash"></i>
</a>
</td>
</tr>
}
</tbody>
</table>
</div>
</div>