upload roomplan
This commit is contained in:
19
src/main/resources/templates/room.html
Normal file
19
src/main/resources/templates/room.html
Normal 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}
|
||||
Reference in New Issue
Block a user