35 lines
1.3 KiB
Text
35 lines
1.3 KiB
Text
{{ define "admin-upload-html" }}
|
|
<!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">
|
|
</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 .Data.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">{{ .Message }}</p>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
{{ end }}
|