From b675961b9c83b0c75b2081c0ff7890fbb536605b Mon Sep 17 00:00:00 2001 From: c0de Date: Fri, 29 Dec 2023 10:18:03 -0600 Subject: [PATCH] move call to action vars to be scoped --- templates/call_to_action.html | 10 +++++----- test.py | 30 ++++++++++++++++-------------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/templates/call_to_action.html b/templates/call_to_action.html index 6fb5f50..b32a94f 100644 --- a/templates/call_to_action.html +++ b/templates/call_to_action.html @@ -11,16 +11,16 @@ - text | yes | none ... (etc) #}--> -{% if active | default(false) %} +{% if call_to_action.active | default(false) %}
-

{{ header }}

-

{{ lead_text }}

+

{{ call_to_action.header }}

+

{{ call_to_action.lead_text }}

- {% if action_buttons %} + {% if call_to_action.buttons %}

- {% for button in action_buttons %} + {% for button in call_to_action.buttons %}