From 32530758fb82aca1bc6c435ff5ab0b607ab4b3cd Mon Sep 17 00:00:00 2001 From: vungc Date: Tue, 16 Jul 2024 12:22:04 -0400 Subject: [PATCH] changed the jinja in createEvent to set page title to Celts Sponsored Event only if the programname is 'CELTS-Sponsored Event' and if the template tag is empty and to create titloe All Volunteer if the programname is 'CELTS-Sponsored Event' and template tage is 'all-volunteer' --- app/templates/admin/createEvent.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/admin/createEvent.html b/app/templates/admin/createEvent.html index 251ba0c7e..900a26732 100644 --- a/app/templates/admin/createEvent.html +++ b/app/templates/admin/createEvent.html @@ -2,13 +2,13 @@ {% set isNewEvent = 'create' in request.path %} {% if isNewEvent %} - {% if eventData["program"].programName == 'CELTS-Sponsored Event' %} + {% if eventData["program"].programName == 'CELTS-Sponsored Event' and template.tag == '' %} {% set page_title = 'Create a ' + eventData["program"].programName %} {% elif template.tag == 'single-program' %} {%set page_title = 'Create Event for ' + eventData["program"].programName %} - {% elif template.tag == 'all-volunteer' %} + {% elif eventData["program"].programName == 'CELTS-Sponsored Event' and template.tag == 'all-volunteer' %} {% set page_title = 'Create All Volunteer Training' %} {% elif template.tag == 'no-program' %}