WIP: Connecter /admin/documents/upload à handleV1DocumentCreate

This commit is contained in:
Victor Lacasse-Beaudoin 2023-04-28 15:57:09 -04:00
parent fd3eebb68c
commit 07005c8753
3 changed files with 188 additions and 8 deletions

View file

@ -9,6 +9,19 @@
<body>
{{ template "header-html" }}
<h1>Upload</h1>
<form action="/admin/documents/upload" method="post" enctype="multipart/form-data">
<label for="bucket">Type de document:</label>
<select name="bucket" id="bucket">
<option value="proces-verbaux">Procès verbaux</option>
<option value="politiques-et-reglements">Politiques et Règlements</option>
</select>
<br>
Document: <input type="file" name="document">
<br>
<br>
<input type="submit" value="Submit">
</form>
<p>{{ .Message }}</p>
</body>
</html>