upload roomplan

This commit is contained in:
mbremer
2021-07-31 16:18:51 +02:00
parent ccf130ad28
commit 78bb174be6
5 changed files with 102 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
{#include base.html}
{#room_active}active{/}
{#contents}
{#if is_admin}
<div class="mt-2">
<form action="/room/plan" method="POST" enctype="multipart/form-data">
<label id="filelabel" class="btn btn-secondary" for="fileinput">
Raumplan auswählen...
</label>
<input id="fileinput" type="file" name="file" accept="image/*" hidden
onchange="document.getElementById('filelabel').innerHTML = 'Datei: ' + this.files[0].name;" />
<input class="btn btn-primary" type="submit" value="Upload" />
</form>
</div>
{/if}
{/contents}
{/include}