+ # DTSTART:20231114T090000
+ # DTEND:20231123T110000
+ # END:VEVENT
+ sdt = request.form['sdate'].replace('-', '')
+ if request.form['edate'] == "":
+ edt = sdt
+ else:
+ edt = request.form['edate'].replace('-', '')
+ if request.form['stime'] != "":
+ sdt += f"T{request.form['stime'].replace(':', '')}00"
+ if request.form['etime'] != "":
+ edt += f"T{request.form['etime'].replace(':', '')}00"
+ data = (f"BEGIN:VEVENT\nSUMMARY:{request.form['title']}\n"
+ f"DESCRIPTION: {request.form['description']}\n"
+ f"LOCATION:{request.form['location']}\n"
+ f"DTSTART:{sdt}\nDTEND:{edt}\n"
+ f"END:VEVENT")
+ elif request.form['type'] == "mail":
+ more = False
+ data = f"mailto:{request.form['mail']}"
+ if request.form['cc'] != "":
+ data += f"?cc={request.form['cc']}"
+ more = True
+ if request.form['bcc'] != "":
+ if more:
+ data += "&"
+ else:
+ data += "?"
+ more = True
+ data += f"bcc={request.form['bcc']}"
+ if request.form['subject'] != "":
+ if more:
+ data += "&"
+ else:
+ data += "?"
+ more = True
+ data += f"subject={request.form['subject']}"
+ if request.form['body'] != "":
+ if more:
+ data += "&"
+ else:
+ data += "?"
+ data += f"body={request.form['body']}"
+ return render_template('qr.html', data=data)
+
+
+if __name__ == "__main__":
+ app.run(host='0.0.0.0', port=8002)
diff --git a/app/templates/base.html b/app/get-templates/base.html
similarity index 100%
rename from app/templates/base.html
rename to app/get-templates/base.html
diff --git a/app/templates/cal.html b/app/get-templates/cal.html
similarity index 100%
rename from app/templates/cal.html
rename to app/get-templates/cal.html
diff --git a/app/templates/geo.html b/app/get-templates/geo.html
similarity index 100%
rename from app/templates/geo.html
rename to app/get-templates/geo.html
diff --git a/app/templates/index.html b/app/get-templates/index.html
similarity index 100%
rename from app/templates/index.html
rename to app/get-templates/index.html
diff --git a/app/templates/mail.html b/app/get-templates/mail.html
similarity index 100%
rename from app/templates/mail.html
rename to app/get-templates/mail.html
diff --git a/app/templates/mecard.html b/app/get-templates/mecard.html
similarity index 100%
rename from app/templates/mecard.html
rename to app/get-templates/mecard.html
diff --git a/app/templates/tel.html b/app/get-templates/tel.html
similarity index 100%
rename from app/templates/tel.html
rename to app/get-templates/tel.html
diff --git a/app/templates/text.html b/app/get-templates/text.html
similarity index 100%
rename from app/templates/text.html
rename to app/get-templates/text.html
diff --git a/app/templates/url.html b/app/get-templates/url.html
similarity index 100%
rename from app/templates/url.html
rename to app/get-templates/url.html
diff --git a/app/templates/vcard.html b/app/get-templates/vcard.html
similarity index 100%
rename from app/templates/vcard.html
rename to app/get-templates/vcard.html
diff --git a/app/templates/wifi.html b/app/get-templates/wifi.html
similarity index 100%
rename from app/templates/wifi.html
rename to app/get-templates/wifi.html
diff --git a/app/post-templates/base.html b/app/post-templates/base.html
new file mode 100644
index 0000000..5c8c4cd
--- /dev/null
+++ b/app/post-templates/base.html
@@ -0,0 +1,17 @@
+
+
+
+
+ QR-Code-Generator
+
+
+
+
+
+
+
+ QRCode-Generator
+ {% block inhalt %}
+ {% endblock %}
+
+
diff --git a/app/post-templates/cal.html b/app/post-templates/cal.html
new file mode 100644
index 0000000..c3610c4
--- /dev/null
+++ b/app/post-templates/cal.html
@@ -0,0 +1,30 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+
+{% endblock %}
diff --git a/app/post-templates/geo.html b/app/post-templates/geo.html
new file mode 100644
index 0000000..8919706
--- /dev/null
+++ b/app/post-templates/geo.html
@@ -0,0 +1,36 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+{% endblock %}
diff --git a/app/post-templates/index.html b/app/post-templates/index.html
new file mode 100644
index 0000000..b3ed0e8
--- /dev/null
+++ b/app/post-templates/index.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+ Welche Art von QR-Code soll generiert werden?
+
+
+
+
+
+
+
+
+
+{% endblock %}
diff --git a/app/post-templates/mail.html b/app/post-templates/mail.html
new file mode 100644
index 0000000..7911a02
--- /dev/null
+++ b/app/post-templates/mail.html
@@ -0,0 +1,24 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+
+{% endblock %}
diff --git a/app/post-templates/mecard.html b/app/post-templates/mecard.html
new file mode 100644
index 0000000..c59b438
--- /dev/null
+++ b/app/post-templates/mecard.html
@@ -0,0 +1,49 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+
+{% endblock %}
diff --git a/app/post-templates/qr.html b/app/post-templates/qr.html
new file mode 100644
index 0000000..12b7440
--- /dev/null
+++ b/app/post-templates/qr.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+ folgendes wurde im QR-Code codiert:
+ {{ data }}
+
+
+
+
+
+Noch einmal bitte!
+
+{% endblock %}
+
diff --git a/app/post-templates/tel.html b/app/post-templates/tel.html
new file mode 100644
index 0000000..3155fbe
--- /dev/null
+++ b/app/post-templates/tel.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+{% endblock %}
diff --git a/app/post-templates/text.html b/app/post-templates/text.html
new file mode 100644
index 0000000..9291470
--- /dev/null
+++ b/app/post-templates/text.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+{% endblock %}
diff --git a/app/post-templates/url.html b/app/post-templates/url.html
new file mode 100644
index 0000000..9c22a37
--- /dev/null
+++ b/app/post-templates/url.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+
+{% endblock %}
diff --git a/app/post-templates/vcard.html b/app/post-templates/vcard.html
new file mode 100644
index 0000000..69a5327
--- /dev/null
+++ b/app/post-templates/vcard.html
@@ -0,0 +1,63 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+
+{% endblock %}
diff --git a/app/post-templates/wifi.html b/app/post-templates/wifi.html
new file mode 100644
index 0000000..ac96c1e
--- /dev/null
+++ b/app/post-templates/wifi.html
@@ -0,0 +1,31 @@
+{% extends "base.html" %}
+
+{% block inhalt %}
+
+
+{% endblock %}