|
|
@@ -3,7 +3,7 @@
|
|
|
<div class="card-header">Table des productions</div>
|
|
|
<div class="card-header shadow-sm">
|
|
|
<div class="row">
|
|
|
- <div class="form-group col-sm-4">
|
|
|
+ <div class="form-group col-sm-4 label-nobr">
|
|
|
<button type="button" (click)="goToRefreshListProduction()" class="btn btn-primary btn-sm" style="margin-right: 5px;"><i class="fa-solid fa-rotate"></i> Actualiser</button>
|
|
|
<button type="button" (click)="goToNewProduction()" class="btn btn-primary btn-sm" style="margin-right: 5px;"><i class="fa-solid fa-plus"></i> Créer</button>
|
|
|
</div>
|
|
|
@@ -13,16 +13,25 @@
|
|
|
<table class="table table-sm">
|
|
|
<thead class="thead-dark">
|
|
|
<tr>
|
|
|
- <th><h6>Type</h6></th>
|
|
|
- <th><h6>Nom</h6></th>
|
|
|
- <th><h6>Auteur(s) (/ Groupe(s))</h6></th>
|
|
|
- <th><h6>Plateforme</h6></th>
|
|
|
+ <th class="fs-6 label-nobr"><small>Type</small></th>
|
|
|
+ <th class="fs-6 label-nobr"><small>Titre</small></th>
|
|
|
+ <th class="fs-6 label-nobr"><small>Auteur(s) (/ Groupe(s))</small></th>
|
|
|
+ <th class="fs-6 label-nobr"><small>Plateforme</small></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
@for (production of productions; track production.numeroProduction) {
|
|
|
<tr>
|
|
|
- <td class="label-nobr">{{ production.type }} </td>
|
|
|
+ <td class="label-nobr fs-4">
|
|
|
+
|
|
|
+ @if (PT[production.type] === PT.EXECUTABLE) { <i class="fa-solid fa-square-binary"></i> }
|
|
|
+ @else if (PT[production.type] === PT.GRAPHE) { <i class="fa-solid fa-image"></i> }
|
|
|
+ @else if (PT[production.type] === PT.MUSIQUE) { <i class="fa-solid fa-music"></i> }
|
|
|
+ @else if (PT[production.type] === PT.VIDEO) { <i class="fa-solid fa-video"></i> }
|
|
|
+ @else if (PT[production.type] === PT.TOPIC) { <i class="fa-solid fa-comment"></i> }
|
|
|
+ @else { <i class="fa-solid fa-question"></i> }
|
|
|
+
|
|
|
+ </td>
|
|
|
<td class="label-nobr"><a (click)="formProduction(production.numeroProduction)" class="link-primary pointeur-souris text-decoration-none">{{ production.titre }}</a> </td>
|
|
|
<td class="label-nobr">{{ production.auteurs }} @if (production.groupes) { @if (production.groupes.length > 0) { / {{ production.groupes }} } } </td>
|
|
|
<td class="label-nobr">{{ production.plateforme }} </td>
|
|
|
@@ -30,15 +39,24 @@
|
|
|
<tr>
|
|
|
<td class="label-nobr"> </td>
|
|
|
<td class="label-nobr" colspan="3">
|
|
|
- <div class="card" style="width: 18rem;">
|
|
|
- <!-- <img src="..." class="card-img-top" alt="..."> -->
|
|
|
- <div class="card-body">
|
|
|
- <h5 class="card-title">{{ production.nomArchive }} (version : {{ production.numeroVersion }})</h5>
|
|
|
- <p class="card-text">{{ production.commentaire }}</p>
|
|
|
- <p class="card-text text-warning">{{ production.informationsPrivees }}</p>
|
|
|
+
|
|
|
+ <div class="card mb-3">
|
|
|
+ <div class="row g-0">
|
|
|
+ <div class="col-sm-2">
|
|
|
+ <img src="{{ production.vignette }}" class="img-fluid rounded-start">
|
|
|
+ </div>
|
|
|
+ <div class="col-sm-10">
|
|
|
+ <div class="card-header">
|
|
|
+ <p class="card-text"><span class="text-primary pointeur-souris">{{ production.nomArchive }}</span> <small> (v{{ production.numeroVersion }})</small></p>
|
|
|
+ </div>
|
|
|
+ <div class="card-body">
|
|
|
+ <p class="card-text"><small>{{ production.commentaire }}</small></p>
|
|
|
+ <p class="card-text text-warning"><small>{{ production.informationsPrivees }}</small></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="card-footer text-primary">(lien download archive)</div>
|
|
|
</div>
|
|
|
+
|
|
|
</td>
|
|
|
</tr>
|
|
|
}
|