49 lines
1.6 KiB
HTML
Raw Normal View History

2023-11-01 14:11:00 +01:00
<!--
-- 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/>.
-->
2023-10-28 10:52:06 +02:00
{{define "add-buttons"}}
2023-10-26 10:05:21 +02:00
<div id="briefing-buttons">
<button type="button" hx-post="/new-participant/{{.BriefingID}}/" hx-target="#briefing-buttons" hx-swap="outerHTML">
2023-10-26 10:05:21 +02:00
Neuer Teilnehmer
</button>
<button type="submit" hx-post="/submit-form/{{.BriefingID}}/" hx-target="#content">
2023-10-30 11:38:56 +01:00
Weiter
2023-10-26 10:05:21 +02:00
</button>
</div>
2023-10-28 10:52:06 +02:00
{{end}}
2023-10-28 10:52:06 +02:00
{{define "new"}}
{{template "add-buttons" .}}
<p>{{.Login}}</p>
{{end}}
2023-10-28 10:52:06 +02:00
{{define "content"}}
<form>
<div>
2023-10-20 16:33:00 +02:00
<label for="location">Ort</label>
2023-10-30 11:38:56 +01:00
<input id="location" name="location" required type="text" value="Werk Langenhagen" />
2023-10-20 16:33:00 +02:00
</div>
<div>
<label for="document">Dokument</label>
2023-10-30 11:38:56 +01:00
<input id="document" name="document" required type="text" value="ICL-1901-LGH" />
</div>
<div>
2023-10-20 16:33:00 +02:00
<label for="as-of">Stand vom</label>
2023-10-30 11:38:56 +01:00
<input id="as-of" name="as-of" required type="date" value="2021-02-01" />
</div>
2023-10-28 10:52:06 +02:00
{{template "add-buttons" .}}
</form>
2023-10-28 10:52:06 +02:00
{{end}}