[WIP] Add web client
Ignore .swp files Rename serverCmd to apiCmd (the web client is technically a server too) Add webCmd for html routes hosting Add embedding and templating for web client Add webhandlers Fix some variables not being filled automatically by viper Change flags and reorganize config structure
This commit is contained in:
parent
3e37e8ffef
commit
3aa7faa2f6
7 changed files with 201 additions and 32 deletions
|
@ -1 +1,31 @@
|
|||
Hello world from bottin
|
||||
{{ define "index-html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>
|
||||
AGECEM | Bottin
|
||||
</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h2>
|
||||
Bottin des membres de l'AGECEM
|
||||
</h2>
|
||||
|
||||
<p>
|
||||
Scannez la carte étudiante d'unE membre<br>
|
||||
-ou-<br>
|
||||
Entrez manuellement le code à 7 chiffres
|
||||
</p>
|
||||
|
||||
<form action="/membre/">
|
||||
<label>#
|
||||
<input type="text" name="num_etud" id="num_etud" autofocus>
|
||||
</label>
|
||||
<button formmethod="get" type="submit">Valider</button>
|
||||
</form>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ end }}
|
||||
|
|
Reference in a new issue