Si on suit les considérations du domain-driven design, le fait qu'on réfère toustes à cette partie du code comme `le frontend` me pousse à renommer le package pour mieux réflèter notre utilisation. Ça devrait rendre plus évident où les fichiers sources du frontend sont situés.
59 lines
1.5 KiB
HTML
59 lines
1.5 KiB
HTML
{{ define "vie-etudiante-html" }}
|
|
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>AGECEM | Vie étudiante</title>
|
|
{{ template "general-html" }}
|
|
<link rel="stylesheet" href="/public/css/vie-etudiante.css">
|
|
</head>
|
|
|
|
<body>
|
|
{{ template "header-html" }}
|
|
<div class="wrapper vieEtudianteWrapper">
|
|
<h1 class="heading1">Vie étudiante</h1>
|
|
|
|
{{if not .Data.Organismes}}
|
|
<h2>Liste des organismes étudiants non-disponible, merci de rééssayer plus tard.</h2>
|
|
{{else}}
|
|
{{range $categorie, $organismes := .Data.Organismes}}
|
|
<h2 class="heading2">{{$categorie}}</h2>
|
|
<table class="table">
|
|
<tr class="tableRowHeading">
|
|
<td>Nom</td>
|
|
<td>Local</td>
|
|
<td>Poste</td>
|
|
<td>Statut</td>
|
|
<td>Description</td>
|
|
</tr>
|
|
{{range $organismes}}
|
|
{{if eq .Statut "Inactif"}}
|
|
<tr class="tableRow inactive">
|
|
<td>{{.Nom}}</td>
|
|
<td>{{.Local}}</td>
|
|
<td>{{.Poste}}</td>
|
|
<td class="organismeInactif">{{.Statut}}</td>
|
|
<td>{{.Description}}</td>
|
|
{{else}}
|
|
<tr class="tableRow">
|
|
<td>{{.Nom}}</td>
|
|
<td>{{.Local}}</td>
|
|
<td>{{.Poste}}</td>
|
|
<td class="organismeActif">{{.Statut}}</td>
|
|
<td>{{.Description}}</td>
|
|
{{end}}
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
<hr class="separator">
|
|
{{end}}
|
|
{{end}}
|
|
|
|
</div>
|
|
<!-- {{ template "snackbar-html" }} -->
|
|
{{ template "footer-html" }}
|
|
</body>
|
|
|
|
</html>
|
|
{{ end }}
|