einfache Reservierung möglich
This commit is contained in:
@@ -11,6 +11,6 @@ quarkus.flyway.migrate-at-start=true
|
||||
|
||||
# Security
|
||||
quarkus.http.auth.form.enabled=true
|
||||
quarkus.http.auth.session.encryption-key=zHId14V+uiyxmbzhEPCyi7VvbaI80UeEO5yu0H/hVLs=
|
||||
#quarkus.http.auth.session.encryption-key=zHId14V+uiyxmbzhEPCyi7VvbaI80UeEO5yu0H/hVLs=
|
||||
# 24h
|
||||
quarkus.http.auth.form.timeout=86400
|
||||
|
||||
@@ -9,6 +9,6 @@ create table users (
|
||||
|
||||
create table kalendertag (
|
||||
id bigint not null primary key,
|
||||
date date not null unique,
|
||||
inoffice_id bigint not null references users
|
||||
day date not null unique,
|
||||
inoffice_id bigint references users
|
||||
);
|
||||
@@ -3,10 +3,93 @@
|
||||
{#contents}
|
||||
|
||||
<div class="mt-2">
|
||||
aktuelle Woche<br>
|
||||
nächste Woche<br>
|
||||
übernächste Woche<br>
|
||||
Heute ist {today.formatCommon}
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="col-2">Ich will ins Büro</th>
|
||||
<th scope="col" class="col-3">Datum</th>
|
||||
<th scope="col">Im Büro</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{#for day in week0}
|
||||
<tr>
|
||||
<td>
|
||||
<form action="/kalender/inoffice/{day.day}" method="POST" name="kalenderForm" enctype="multipart/form-data">
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" name="inoffice" onchange="this.form.submit()"
|
||||
{#if day.isCurrentUserInOffice}checked{/if} >
|
||||
</div>
|
||||
</form>
|
||||
</td>
|
||||
<td>
|
||||
{day.day.formatCommon}
|
||||
</td>
|
||||
<td>
|
||||
{#if day.inOffice}{day.inOffice.username}{/if}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
{/for}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{/contents}
|
||||
{/include}
|
||||
<div class="mt-2">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tbody>
|
||||
{#for day in week1}
|
||||
<tr>
|
||||
<td class="col-2">
|
||||
<form action="/kalender/inoffice/{day.day}" method="POST" name="kalenderForm" enctype="multipart/form-data">
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" name="inoffice" onchange="this.form.submit()"
|
||||
{#if day.isCurrentUserInOffice}checked{/if} >
|
||||
</div>
|
||||
</form>
|
||||
</td>
|
||||
<td class="col-3">
|
||||
{day.day.formatCommon}
|
||||
</td>
|
||||
<td>
|
||||
{#if day.inOffice}{day.inOffice.username}{/if}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
{/for}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="mt-2">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tbody>
|
||||
{#for day in week2}
|
||||
<tr>
|
||||
<td class="col-2">
|
||||
<form action="/kalender/inoffice/{day.day}" method="POST" name="kalenderForm" enctype="multipart/form-data">
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" name="inoffice" onchange="this.form.submit()"
|
||||
{#if day.isCurrentUserInOffice}checked{/if} >
|
||||
</div>
|
||||
</form>
|
||||
</td>
|
||||
<td class="col-3">
|
||||
{day.day.formatCommon}
|
||||
</td>
|
||||
<td>
|
||||
{#if day.inOffice}{day.inOffice.username}{/if}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
{/for}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{/contents}
|
||||
{/include}
|
||||
Reference in New Issue
Block a user