From ef31e160d9063aca71279c815ec3db81896b0b7c Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Tue, 7 Dec 2021 21:51:49 +0000 Subject: [PATCH] Consistently use create_form and search_form as context variables --- .../workflows/task_chooser/chooser.html | 6 +-- .../task_chooser/includes/create_form.html | 6 +-- .../task_chooser/includes/results.html | 6 +-- wagtail/admin/tests/test_workflows.py | 6 +-- wagtail/admin/views/workflows.py | 38 +++++++++---------- 5 files changed, 31 insertions(+), 31 deletions(-) diff --git a/wagtail/admin/templates/wagtailadmin/workflows/task_chooser/chooser.html b/wagtail/admin/templates/wagtailadmin/workflows/task_chooser/chooser.html index 780cd3e9f9..bb9a8f7049 100644 --- a/wagtail/admin/templates/wagtailadmin/workflows/task_chooser/chooser.html +++ b/wagtail/admin/templates/wagtailadmin/workflows/task_chooser/chooser.html @@ -12,8 +12,8 @@
{% if can_create %}
- {% if createform %} - {% include "wagtailadmin/workflows/task_chooser/includes/create_form.html" with form=createform %} + {% if create_form %} + {% include "wagtailadmin/workflows/task_chooser/includes/create_form.html" %} {% else %} {% include "wagtailadmin/workflows/task_chooser/includes/select_task_type.html" %} {% endif %} @@ -22,7 +22,7 @@