Merge pull request 'J1/refactor/conformité' (#70) from J1/refactor/conformité into dev
Reviewed-on: http://10.4.0.131/DI1-P4-E1/Webzine/pulls/70 Reviewed-by: Loic Masi <loic.masi@diiage.org>
This commit is contained in:
@@ -5,7 +5,7 @@ using Webzine.WebApplication.Areas.Administration.ViewModels.Commentaire;
|
|||||||
|
|
||||||
namespace Webzine.WebApplication.Areas.Administration.Controllers
|
namespace Webzine.WebApplication.Areas.Administration.Controllers
|
||||||
{
|
{
|
||||||
[Area("Administrations")]
|
[Area("Administration")]
|
||||||
public class CommentaireController : Controller
|
public class CommentaireController : Controller
|
||||||
{
|
{
|
||||||
private readonly ILogger<CommentaireController> _logger;
|
private readonly ILogger<CommentaireController> _logger;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using Webzine.WebApplication.Areas.Administration.ViewModels.Titre;
|
|||||||
|
|
||||||
namespace Webzine.WebApplication.Areas.Administration.Controllers;
|
namespace Webzine.WebApplication.Areas.Administration.Controllers;
|
||||||
|
|
||||||
[Area("Administrations")]
|
[Area("Administration")]
|
||||||
public class TitreController : Controller
|
public class TitreController : Controller
|
||||||
{
|
{
|
||||||
private readonly ILogger<TitreController> _logger;
|
private readonly ILogger<TitreController> _logger;
|
||||||
|
|||||||
@@ -8,7 +8,10 @@
|
|||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<h2>
|
<h2>
|
||||||
<a asp-area="" asp-controller="" asp-action="" asp-route-style="@Model.Details.ArtisteNom">@Model.Details.ArtisteNom</a>
|
<a asp-area=""
|
||||||
|
asp-controller="Artiste"
|
||||||
|
asp-action="Index"
|
||||||
|
asp-route-nom="@Model.Details.ArtisteNom">@Model.Details.ArtisteNom</a>
|
||||||
- @Model.Details.Libelle
|
- @Model.Details.Libelle
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
@@ -63,7 +66,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<a class="btn text-primary btn-sm">
|
<a asp-area="Administration" asp-controller="Titre" asp-action="Edit" asp-route-id="@Model.Details.IdTitre" class="btn text-primary btn-sm">
|
||||||
<i class="fa fa-pen-to-square me-1"></i> Editer
|
<i class="fa fa-pen-to-square me-1"></i> Editer
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,9 @@
|
|||||||
<!-- COLUMN -->
|
<!-- COLUMN -->
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
|
|
||||||
<h1 class="mb-4 titre-h1">Titres ayant le style @Model.StyleName</h1>
|
<h1 class="mb-4">Titres ayant le style @Model.StyleName</h1>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
@if (!Model.Titres.Any())
|
@if (!Model.Titres.Any())
|
||||||
{
|
{
|
||||||
@@ -22,22 +24,31 @@
|
|||||||
{
|
{
|
||||||
@foreach (var titre in Model.Titres)
|
@foreach (var titre in Model.Titres)
|
||||||
{
|
{
|
||||||
<div class="titre-item d-flex align-items-start">
|
<div class="d-flex align-items-start my-3">
|
||||||
|
|
||||||
<!-- Image -->
|
<!-- Image -->
|
||||||
<div class="me-3">
|
<a asp-action="Details"
|
||||||
<img src="@titre.UrlJaquette" alt="@titre.Libelle" />
|
asp-route-id="@titre.IdTitre"
|
||||||
</div>
|
class="me-3 text-black">
|
||||||
|
<img src="@titre.UrlJaquette" alt="@titre.Libelle" width="70px" height="70px" class="object-fit-cover"/>
|
||||||
|
</a>
|
||||||
|
|
||||||
<!-- Infos -->
|
<!-- Infos -->
|
||||||
<div>
|
<div class="justify-content-center d-flex flex-column">
|
||||||
<a asp-action="Details"
|
<div>
|
||||||
asp-route-id="@titre.IdTitre"
|
<a asp-action="Index"
|
||||||
class="titre-link">
|
asp-controller="Artiste"
|
||||||
@titre.ArtisteNom - @titre.Libelle
|
asp-route-nom="@titre.ArtisteNom">
|
||||||
</a>
|
@titre.ArtisteNom
|
||||||
|
</a>
|
||||||
|
-
|
||||||
|
<a asp-action="Details"
|
||||||
|
asp-route-id="@titre.IdTitre">
|
||||||
|
@titre.Libelle
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="titre-duree">
|
<div>
|
||||||
Durée : @TimeSpan.FromSeconds(titre.Duree).ToString(@"mm\:ss")
|
Durée : @TimeSpan.FromSeconds(titre.Duree).ToString(@"mm\:ss")
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,33 +1,3 @@
|
|||||||
a {
|
a {
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.titre-h1 {
|
|
||||||
padding: 15px 0;
|
|
||||||
border-bottom: 1px solid #ddd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.titre-item {
|
|
||||||
padding: 8px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.titre-item img {
|
|
||||||
width: 70px;
|
|
||||||
height: 70px;
|
|
||||||
object-fit: cover;
|
|
||||||
}
|
|
||||||
|
|
||||||
.titre-link {
|
|
||||||
font-size: 1.1rem;
|
|
||||||
color: #0d6efd;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.titre-link:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.titre-duree {
|
|
||||||
font-size: 0.9rem;
|
|
||||||
color: #666;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user