From b1b63fbb7ff5f1709955e668324b957d2c15d1e5 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 28 May 2020 23:21:43 +0200 Subject: [PATCH] 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 }} +
+