Implémenter page web de scan de présence
Voir diff pour détails
This commit is contained in:
parent
c6f3a52f91
commit
c218860e33
10 changed files with 139 additions and 10 deletions
|
@ -1,7 +1,25 @@
|
|||
{{ define "index-html" }}
|
||||
<h2>agecem/bottin-ag</h2>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AGECEM | Assemblée Générale</title>
|
||||
<script src="/public/js/htmx.min.js"></script>
|
||||
<script src="/public/js/membreid-selected-and-cleared.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Présences en Assemblée Générale</h2>
|
||||
|
||||
<h3>StatusCode: {{ .StatusCode }}</h3>
|
||||
<h3>Message: {{ .Message }}</h3>
|
||||
<h3>Error: {{ .Error }}</h3>
|
||||
{{ if .Error }}<h3>Error: {{ .Error }}</h3>{{ end }}
|
||||
|
||||
<form action="" hx-post="/scan" hx-target="#app-content">
|
||||
<label for="membre_id">Numéro étudiant:</label>
|
||||
<input id="membre_id" name="membre_id" value="" required />
|
||||
<button type="submit">enregistrer</button>
|
||||
</form>
|
||||
|
||||
<div id="app-content">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
|
3
webcontent/html/scan.html
Normal file
3
webcontent/html/scan.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{ define "scan-html" }}
|
||||
<h3>{{ .Message }}</h3>
|
||||
{{ end }}
|
Reference in a new issue