From 48f8f945d17d06be1777c4491539244f712250ee Mon Sep 17 00:00:00 2001 From: ulrich Date: Fri, 09 Apr 2021 13:37:47 +0000 Subject: [PATCH] JavaScript Form-Behandlung vereinheitlicht --- www/ui/data/tpl/form_abspieler.tpl | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/www/ui/data/tpl/form_abspieler.tpl b/www/ui/data/tpl/form_abspieler.tpl index 50eea05..d03c7fc 100644 --- a/www/ui/data/tpl/form_abspieler.tpl +++ b/www/ui/data/tpl/form_abspieler.tpl @@ -1,12 +1,14 @@ -<div class="entity-formular"> - Abspieler +<form> + <div class="entity-formular"> + Abspieler - <input class="entity-element" type="text" id="abspieler-name" placeholder="Name" value="{{name}}" /> - <input class="entity-element" type="text" id="abspieler-url" placeholder="URL" value="{{url}}" /> - <div class="entity-buttons"> - <button class="button-primary" id="ok-btn">Speichern</button> - <button class="button" id="cancel-btn">Abbrechen</button> - <button class="button" id="loeschen-btn">Löschen</button> + <input name="name" class="entity-element" type="text" id="abspieler-name" placeholder="Name" value="{{name}}" /> + <input name="url" class="entity-element" type="text" id="abspieler-url" placeholder="URL" value="{{url}}" /> + <div class="entity-buttons"> + <button type="submit" class="button-primary" id="ok-btn">Speichern</button> + <button class="button" id="cancel-btn">Abbrechen</button> + <button class="button" id="loeschen-btn">Löschen</button> + </div> + </div> - -</div> \ No newline at end of file +</form> \ No newline at end of file -- Gitblit v1.9.3