From b85d81048894d4bcc4dd38293a7a9e7a371e88ca Mon Sep 17 00:00:00 2001 From: Mark Calvert Date: Mon, 4 Nov 2024 08:36:13 +0800 Subject: [PATCH] Refactor template variable assignments in new_package_form.html to fix showing delete and update showcase buttons --- ckanext/showcase/templates/showcase/new_package_form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/showcase/templates/showcase/new_package_form.html b/ckanext/showcase/templates/showcase/new_package_form.html index d1ca93a2..ba34c1a5 100644 --- a/ckanext/showcase/templates/showcase/new_package_form.html +++ b/ckanext/showcase/templates/showcase/new_package_form.html @@ -1,6 +1,6 @@ {% import 'macros/form.html' as form %} -{% set action = c.form_action or '' %} -{% set form_style = c.form_style or c.action %} +{% set action = form_action or '' %} +{% set form_style = form_style or action %} {% set showcase_read_route = 'showcase_blueprint.read' %} {% set showcase_delete_route = 'showcase_blueprint.delete' %}