Déplacer ui/organismes.json -> ui/vie-etudiante-organismes.json Embed ui/vie-etudiante-organismes.json
56 lines
1.4 KiB
HTML
56 lines
1.4 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>
|
|
</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>
|
|
{{else}}
|
|
<tr class="tableRow">
|
|
<td>{{.Nom}}</td>
|
|
<td>{{.Local}}</td>
|
|
<td>{{.Poste}}</td>
|
|
<td class="organismeActif">{{.Statut}}</td>
|
|
{{end}}
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
<hr class="separator">
|
|
{{end}}
|
|
{{end}}
|
|
|
|
</div>
|
|
<!-- {{ template "snackbar-html" }} -->
|
|
{{ template "footer-html" }}
|
|
</body>
|
|
|
|
</html>
|
|
{{ end }}
|