From 5b9d746ed7d6b4b35a7cb83c578eefc9f31d2d05 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 22 Dec 2017 20:08:54 +0000 Subject: [PATCH] more changes --- content/templates/opt.html | 8 ++++++-- content/templates/page.html | 2 ++ content/templates/texts.html | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/content/templates/opt.html b/content/templates/opt.html index a624b5f..a5f545c 100644 --- a/content/templates/opt.html +++ b/content/templates/opt.html @@ -1,12 +1,16 @@ -{% if content.optbtn2 and content.opttext2 %} +{% if content.opttext2 %}
+ {% if content.optbtn2 %}

{{ content.optbtn2|safe }}

+ {% endif %}

{{ content.opttext2|safe|linebreaks }}

{% endif %} -{% if content.optbtn3 and content.opttext3 %} +{% if content.opttext3 %}
+ {% if content.optbtn3 %}

{{ content.optbtn3|safe }}

+ {% endif %}

{{ content.opttext3|safe|linebreaks }}

{% endif %} diff --git a/content/templates/page.html b/content/templates/page.html index 457dc40..947d885 100644 --- a/content/templates/page.html +++ b/content/templates/page.html @@ -1,6 +1,7 @@ {% extends 'base.html' %} {% block content %} + {% include "edit.html" with content=content %}

{{content.title}}

@@ -12,6 +13,7 @@

{{content.formatted_body|safe}}

+ {% include "opt.html" with content=content %}
{% endblock %} diff --git a/content/templates/texts.html b/content/templates/texts.html index 7baae26..a76abb6 100644 --- a/content/templates/texts.html +++ b/content/templates/texts.html @@ -1,6 +1,7 @@ {% extends 'base.html' %} {% block content %} + {% include "edit.html" with content=texts %}
{% if texts.image %}