Merge branch 'main' into feature/responsive-header
This commit is contained in:
commit
d97d1ccf3c
8 changed files with 122 additions and 43 deletions
|
@ -12,8 +12,9 @@
|
|||
<form class="form adminUploadForm" action="/admin/documents/upload" method="post" enctype="multipart/form-data">
|
||||
<label class="formLabel" for="bucket">Type de document:</label>
|
||||
<select class="formSelect" name="bucket" id="bucket">
|
||||
<option class="formOption" value="proces-verbaux">Procès verbaux</option>
|
||||
<option class="formOption" value="politiques-et-reglements">Politiques et Règlements</option>
|
||||
{{ range .Buckets }}
|
||||
<option class="formOption" value="{{ .Name }}">{{ .DisplayName }}</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
<br>
|
||||
Document: <input class="formDocUpload" type="file" name="document">
|
||||
|
|
|
@ -13,13 +13,15 @@
|
|||
<p>
|
||||
{{ range . }}
|
||||
{{ $bucket_name := .Name }}
|
||||
{{ $bucket_display_name := .DisplayName }}
|
||||
<details>
|
||||
<summary>{{ $bucket_name }}</summary>
|
||||
<ul>
|
||||
{{ range .Documents }}
|
||||
<li> <a href="/public/documentation/{{ $bucket_name }}/{{ . }}">{{ . }}</a></li>
|
||||
{{ end}}
|
||||
</ul>
|
||||
<summary>{{ $bucket_display_name }}</summary>
|
||||
|
||||
<ul>
|
||||
{{ range .Documents }}
|
||||
<li> <a href="/public/documentation/{{ $bucket_name }}/{{ . }}">{{ . }}</a></li>
|
||||
{{ end}}
|
||||
</ul>
|
||||
</details>
|
||||
{{ end }}
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue