From a5dea2b399f111e5f755fbf744da81f349b0515c Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Tue, 17 Oct 2017 09:30:52 +0200 Subject: [PATCH] Add ungleich_page cms_plugins and section templates --- ungleich_page/cms_plugins.py | 17 ++++ .../glasfaser/section_contact.html | 83 +++++++++++++++++++ .../glasfaser/section_with_image.html | 10 +++ 3 files changed, 110 insertions(+) create mode 100644 ungleich_page/cms_plugins.py create mode 100644 ungleich_page/templates/ungleich_page/glasfaser/section_contact.html create mode 100644 ungleich_page/templates/ungleich_page/glasfaser/section_with_image.html diff --git a/ungleich_page/cms_plugins.py b/ungleich_page/cms_plugins.py new file mode 100644 index 00000000..21c6f8d9 --- /dev/null +++ b/ungleich_page/cms_plugins.py @@ -0,0 +1,17 @@ +from cms.plugin_base import CMSPluginBase +from cms.plugin_pool import plugin_pool +from cms.models.pluginmodel import CMSPlugin + + +@plugin_pool.register_plugin +class SectionWithImagePlugin(CMSPluginBase): + model = CMSPlugin + render_template = "ungleich_page/glasfaser/section_with_image.html" + cache = False + + +@plugin_pool.register_plugin +class SectionContact(CMSPluginBase): + model = CMSPlugin + render_template = "ungleich_page/glasfaser/section_contact.html" + cache = False diff --git a/ungleich_page/templates/ungleich_page/glasfaser/section_contact.html b/ungleich_page/templates/ungleich_page/glasfaser/section_contact.html new file mode 100644 index 00000000..4fb74d8f --- /dev/null +++ b/ungleich_page/templates/ungleich_page/glasfaser/section_contact.html @@ -0,0 +1,83 @@ +{% load i18n %} + +
+
+
+
+
+
+

Kontakt

+
+
+
+

ungleich GmbH

+
+
+

glasfaser@ungleich.ch

+

In der Au 7, Schwanden 8762

+

Switzerland

+
+
+ +
+
+
+ {% if success %} +
+
+

{% trans "Thank you for contacting us." %}

+
+

+ {% trans "Your message was successfully sent to our team." %} +

+
+ {% else %} +
+
+
+

Senden Sie uns eine Nachricht.

+
+
+
+
+ {% csrf_token %} + +
+ +
+ + {{contact_form.name.errors}} +
+
+
+ +
+ + {{contact_form.email.errors}} +
+
+
+ +
+ + {{contact_form.message.errors}} +
+
+
+
+
{% trans "Sorry, there was an unexpected error. Kindly retry." %}
+ +
+
+
+ {% endif %} +
+
+
+
+
+
\ No newline at end of file diff --git a/ungleich_page/templates/ungleich_page/glasfaser/section_with_image.html b/ungleich_page/templates/ungleich_page/glasfaser/section_with_image.html new file mode 100644 index 00000000..0990a3f2 --- /dev/null +++ b/ungleich_page/templates/ungleich_page/glasfaser/section_with_image.html @@ -0,0 +1,10 @@ +
+
+
+
+
+
+

TEST TEST

+
+
+
\ No newline at end of file