From 5226a2e67c7dec0fa19e9adafb6dd6f95b0a364d Mon Sep 17 00:00:00 2001
From: ulrich <undisclosed>
Date: Thu, 04 Jan 2018 13:37:54 +0000
Subject: [PATCH] Sender-Formular (in Arbeit)

---
 data/tpl/dlg-sender-edit.tpl |   10 ++++++++++
 app.js                       |    7 +++++++
 2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/app.js b/app.js
index 2c6bd4d..eb7f901 100644
--- a/app.js
+++ b/app.js
@@ -3,6 +3,7 @@
 var TPL_SENDER = 'sender';
 var TPL_DLG_MSG = 'dlg-msg';
 var TPL_DLG_INFO = 'dlg-info';
+var TPL_DLG_SENDER = 'dlg-sender';
 var templateCache = {}; // mustache templates 'home', 'prefs', 'sender'
 var prefsRendered = false;
 
@@ -13,6 +14,7 @@
   app_get_template('data/tpl/dlg-msg.tpl', TPL_DLG_MSG);
   app_get_template('data/tpl/dlg-info.tpl', TPL_DLG_INFO);
   app_get_template('data/tpl/sender.tpl', TPL_SENDER);
+  app_get_template('data/tpl/dlg-sender-edit.tpl', TPL_DLG_SENDER);
   //app_get_template('tpl/prefs.tpl', 'prefs');
   $('.sued').text('Bereit.');
   setTimeout(function() {
@@ -30,6 +32,11 @@
   app_nachricht_zeigen(templateCache[TPL_DLG_INFO], '');
 }
 
+function app_neuer_sender() {
+  app_nachricht_zeigen(templateCache[TPL_DLG_SENDER], '');
+}
+
+
 /* --- Sonstiges --- */
 
 function app_dialog_zeigen(vorlage, inhalt) {
diff --git a/data/tpl/dlg-sender-edit.tpl b/data/tpl/dlg-sender-edit.tpl
new file mode 100644
index 0000000..792e99c
--- /dev/null
+++ b/data/tpl/dlg-sender-edit.tpl
@@ -0,0 +1,10 @@
+<div class="dlg-sender-edit">
+  <span class="close-btn pointer-cursor">&#10006;</span>
+  <div class="sender-form">
+    <form>
+      <input id="sender-name" placeholder="Name" type="text" class="sender-eingabe"></br>
+      <input id="sender-logo" placeholder="Logo" type="text" class="sender-eingabe"></br>
+      <input id="sender-url" placeholder="URL" type="text" class="sender-eingabe">
+    </form>
+  </div>
+</div>

--
Gitblit v1.9.3