From fe6bfb162063d65daf509aa2184f9cf700206ce8 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 28 May 2020 22:44:42 +0200 Subject: [PATCH 1/3] stages/identification: fix wrong link --- .../identification/templates/stages/identification/login.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/stages/identification/templates/stages/identification/login.html b/passbook/stages/identification/templates/stages/identification/login.html index ee20656fb..d95ebd675 100644 --- a/passbook/stages/identification/templates/stages/identification/login.html +++ b/passbook/stages/identification/templates/stages/identification/login.html @@ -43,7 +43,7 @@ {% if enroll_url %} {% endif %} {% if recovery_url %} From b1b63fbb7ff5f1709955e668324b957d2c15d1e5 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 28 May 2020 23:21:43 +0200 Subject: [PATCH 2/3] stages/prompt: add prompt order field --- .../administration/stage_prompt/list.html | 6 ++ passbook/admin/views/stages_prompts.py | 2 +- passbook/flows/planner.py | 1 - passbook/flows/templates/flows/shell.html | 2 +- passbook/stages/identification/stage.py | 4 +- passbook/stages/prompt/api.py | 1 + passbook/stages/prompt/forms.py | 6 +- .../migrations/0002_auto_20200528_2059.py | 35 ++++++++++++ passbook/stages/prompt/models.py | 56 ++++++++++--------- passbook/stages/prompt/tests.py | 19 ------- 10 files changed, 80 insertions(+), 52 deletions(-) create mode 100644 passbook/stages/prompt/migrations/0002_auto_20200528_2059.py diff --git a/passbook/admin/templates/administration/stage_prompt/list.html b/passbook/admin/templates/administration/stage_prompt/list.html index 5c13689b4..5aff63c69 100644 --- a/passbook/admin/templates/administration/stage_prompt/list.html +++ b/passbook/admin/templates/administration/stage_prompt/list.html @@ -29,6 +29,7 @@ {% trans 'Field' %} {% trans 'Label' %} {% trans 'Type' %} + {% trans 'Order' %} {% trans 'Flows' %} @@ -51,6 +52,11 @@ {{ prompt.type }} + +
+ {{ prompt.order }} +
+