feat: renommer package ui pour frontend
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.
This commit is contained in:
parent
74fe5ac697
commit
076bb1a90c
98 changed files with 9 additions and 12 deletions
59
frontend/vie-etudiante.html
Normal file
59
frontend/vie-etudiante.html
Normal file
|
@ -0,0 +1,59 @@
|
|||
{{ 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue