agecem-org/templates/html/admin-upload.gohtml

36 lines
1.4 KiB
Text
Raw Normal View History

{{ 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" }}
<link rel="stylesheet" href="/public/css/admin-upload.css">
2023-08-15 14:30:10 -04:00
</head>
<body>
{{ template "header-html" }}
<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>
<input class="formDocUpload" type="file" name="document">
</div>
<div class="formSelectDiv">
<label class="formLabel" for="bucket">Type de document</label>
<select class="formSelect" name="bucket" id="bucket">
{{ range .Buckets }}
<option class="formOption" value="{{ .Name }}">{{ .DisplayName }}</option>
{{ end }}
</select>
</div>
</div>
<input class="formSubmit" type="submit" value="Ajouter le document">
</form>
<p class="confirmationMessage"><strong>Confirmation:</strong> {{ .Message }}</p>
</div>
2023-08-15 14:30:10 -04:00
</body>
</html>
{{ end }}