49 lines
1.6 KiB
HTML

<!--
-- Sicherheitsunterweisung
-- Copyright (C) 2023 Jason Streifling
--
-- This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
{{define "add-buttons"}}
<div id="briefing-buttons">
<button type="button" hx-post="/new-participant/{{.SessionID}}/" hx-target="#briefing-buttons" hx-swap="outerHTML">
Neuer Teilnehmer
</button>
<button type="submit" hx-post="/submit-form/{{.SessionID}}/" hx-target="#content">
Weiter
</button>
</div>
{{end}}
{{define "new"}}
{{template "add-buttons" .}}
<p>{{.Login}}</p>
{{end}}
{{define "content"}}
<form>
<div>
<label for="location">Ort</label>
<input id="location" name="location" required type="text" value="Werk Langenhagen" />
</div>
<div>
<label for="document">Dokument</label>
<input id="document" name="document" required type="text" value="ICL-1901-LGH" />
</div>
<div>
<label for="as-of">Stand vom</label>
<input id="as-of" name="as-of" required type="date" value="2021-02-01" />
</div>
{{template "add-buttons" .}}
</form>
{{end}}