2023-04-26 19:28:20 -04:00
|
|
|
{{ define "admin-upload-html" }}
|
2023-08-15 14:30:10 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>AGECEM</title>
|
|
|
|
{{ template "general-html" }}
|
2023-10-12 13:58:01 -04:00
|
|
|
<link rel="stylesheet" href="/public/css/admin-upload.css">
|
2023-08-15 14:30:10 -04:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{{ template "header-html" }}
|
2023-10-12 13:58:01 -04:00
|
|
|
<div class="wrapper adminUploadWrapper">
|
|
|
|
<h1 class="heading1">Ajouter un document</h1>
|
|
|
|
<form class="form adminUploadForm" action="/admin/documents/upload" method="post" enctype="multipart/form-data">
|
|
|
|
<div class="formContent">
|
|
|
|
<div class="formDocUploadDiv">
|
|
|
|
<p class="formLabel">Document à téléverser</p>
|
2023-12-19 19:44:25 -05:00
|
|
|
<input class="formDocUpload"
|
|
|
|
type="file"
|
|
|
|
name="documents"
|
|
|
|
accept="application/pdf,.md,text/markdown;charset=UTF-8,text/plain"
|
|
|
|
multiple
|
|
|
|
/>
|
2023-10-12 13:58:01 -04:00
|
|
|
</div>
|
|
|
|
<div class="formSelectDiv">
|
|
|
|
<label class="formLabel" for="bucket">Type de document</label>
|
|
|
|
<select class="formSelect" name="bucket" id="bucket">
|
2023-10-12 16:50:39 -04:00
|
|
|
{{ range .Data.Buckets }}
|
2023-10-12 13:58:01 -04:00
|
|
|
<option class="formOption" value="{{ .Name }}">{{ .DisplayName }}</option>
|
|
|
|
{{ end }}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<input class="formSubmit" type="submit" value="Ajouter le document">
|
|
|
|
</form>
|
2023-10-12 16:50:39 -04:00
|
|
|
<p class="confirmationMessage">{{ .Message }}</p>
|
2023-10-12 13:58:01 -04:00
|
|
|
</div>
|
2024-08-27 13:15:56 -04:00
|
|
|
{{ template "footer-html" }}
|
2023-08-15 14:30:10 -04:00
|
|
|
</body>
|
|
|
|
</html>
|
2023-04-26 19:28:20 -04:00
|
|
|
{{ end }}
|