Button zum Generieren einer UUID hinzugefügt

This commit is contained in:
Jason Streifling 2023-10-10 18:55:54 +02:00
parent f80dca4b10
commit 2beb90a345

View File

@ -8,6 +8,10 @@
<label for="participant-company-input-{{ . }}">Firma</label> <label for="participant-company-input-{{ . }}">Firma</label>
<input type="text" name="participant-company-{{ . }}" id="participant-company-input-{{ . }}" /> <input type="text" name="participant-company-{{ . }}" id="participant-company-input-{{ . }}" />
<button type="button" hx-post="/generate-uuid/" hx-target="this">
Neuer Teilnehmer
</button>
</div> </div>
{{ end }} {{ end }}
@ -43,7 +47,7 @@
<div id="participants"> <div id="participants">
<button type="button" hx-post="/add-participant/" hx-target="#participants" hx-swap="beforeend" hx-trigger="click"> <button type="button" hx-post="/add-participant/" hx-target="#participants" hx-swap="beforeend" hx-trigger="click">
+ Neuer Teilnehmer
</button> </button>
{{ template "participant" . }} {{ template "participant" . }}