From a29f5ca76074f014d2a82390610797907528efc1 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Wed, 21 Apr 2021 06:37:03 +0000
Subject: [PATCH] Unterscheidung und Verarbeitung Geraete-Liste mit allen Angaben (auch Status) oder nur Name

---
 www/ui/data/tpl/form_geraet.txt |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/www/ui/data/tpl/form_geraet.txt b/www/ui/data/tpl/form_geraet.txt
index 6d94060..92dd2a8 100644
--- a/www/ui/data/tpl/form_geraet.txt
+++ b/www/ui/data/tpl/form_geraet.txt
@@ -1,13 +1,14 @@
 <form>
   <div class="entity-formular">
-    <input name="name" class="entity-element" type="text" id="geraet-name" placeholder="Name" value="{{name}}" />
-    <input name="einUrl" class="entity-element" type="text" id="geraet-einurl" placeholder="URL (Ein)" value="{{einUrl}}" />
-    <input name="ausUrl" class="entity-element" type="text" id="geraet-ausurl" placeholder="URL (Aus)" value="{{ausUrl}}" />
-    <input name="statusUrl" class="entity-element" type="text" id="geraet-statusurl" placeholder="URL (Status)" value="{{statusUrl}}" />
+    <input name="name" class="entity-form-element" type="text" id="geraet-name" placeholder="Name" value="{{name}}" />
+    <input name="einUrl" class="entity-form-element" type="text" id="geraet-einurl" placeholder="URL (Ein)" value="{{einUrl}}" />
+    <input name="ausUrl" class="entity-form-element" type="text" id="geraet-ausurl" placeholder="URL (Aus)" value="{{ausUrl}}" />
+    <input name="statusUrl" class="entity-form-element" type="text" id="geraet-statusurl" placeholder="URL (Status)" value="{{statusUrl}}" />
+    <input name="status" class="entity-form-element" type="hidden" id="geraet-status" placeholder="URL (Status)" value="{{status}}" />
     <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&ouml;schen</button>
+      <button type="button" class="button" id="cancel-btn">Abbrechen</button>
+      <button type="button" class="button" id="loeschen-btn">L&ouml;schen</button>
     </div>
   </div>
 </form>
\ No newline at end of file

--
Gitblit v1.9.3