From 87f318d4aa4219d4a6c7de17e9dd71c314da2744 Mon Sep 17 00:00:00 2001 From: SDE Date: Tue, 9 Jan 2024 13:48:33 +0300 Subject: [PATCH] 0.4.48 static page template --- GeneralApp/admin.py | 2 +- templates/pages/p_static_page.html | 35 +++++++++++++++----- templates/widgets/w_checkbox_f_feedback.html | 2 +- 3 files changed, 28 insertions(+), 11 deletions(-) diff --git a/GeneralApp/admin.py b/GeneralApp/admin.py index d7a1326..9862f97 100644 --- a/GeneralApp/admin.py +++ b/GeneralApp/admin.py @@ -95,7 +95,7 @@ class Admin_StaticPage(SuperModelAdmin, Admin_Trans_BaseModelViewPage): 'classes': ['wide'], 'fields': ('name', 'url', - # 'title', + 'title', 'description', 'text', 'picture', 'order', diff --git a/templates/pages/p_static_page.html b/templates/pages/p_static_page.html index 566549b..b615c75 100644 --- a/templates/pages/p_static_page.html +++ b/templates/pages/p_static_page.html @@ -1,10 +1,27 @@ - - - - - Title - - +{% extends 'tb_base.html' %} +{% block CONTENT %} - - \ No newline at end of file + {% include 'blocks/b_sections_buttons.html' %} + + {% if page.description or page.title or page.text %} +
+
+
+ + {% if page.description %} +
{{ page.description }}
+ {% endif %} + {% if page.title %} +
{{ page.title }}
+ {% endif %} + {% if page.text %} +
{{ page.text|safe }}
+ {% endif %} + +
+
+
+ {% endif %} + + +{% endblock %} \ No newline at end of file diff --git a/templates/widgets/w_checkbox_f_feedback.html b/templates/widgets/w_checkbox_f_feedback.html index 978aeba..9b07dcf 100644 --- a/templates/widgets/w_checkbox_f_feedback.html +++ b/templates/widgets/w_checkbox_f_feedback.html @@ -3,7 +3,7 @@ {% if feedback_form.errors.company %}
{% endif %}