roomplan persistence

This commit is contained in:
mbremer
2021-08-01 09:48:31 +02:00
parent 78bb174be6
commit 6f02239bdc
6 changed files with 106 additions and 20 deletions

View File

@@ -2,11 +2,15 @@
{#room_active}active{/}
{#contents}
<div class="mt-2">
<img src="/room/plan" alt="kein Raumplan vorhanden">
</div>
{#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...
neuen Raumplan auswählen...
</label>
<input id="fileinput" type="file" name="file" accept="image/*" hidden
onchange="document.getElementById('filelabel').innerHTML = 'Datei: ' + this.files[0].name;" />