admin: add flow-stage-bindings, add policy-bindings, add prompts

This commit is contained in:
Jens Langhammer
2020-05-16 19:55:59 +02:00
parent df1cb88abc
commit e68352b09c
17 changed files with 651 additions and 34 deletions

View File

@ -19,6 +19,25 @@ class PromptStageForm(forms.ModelForm):
}
class PromptAdminForm(forms.ModelForm):
"""Form to edit Prompt instances for admins"""
class Meta:
model = Prompt
fields = [
"field_key",
"label",
"type",
"required",
"placeholder",
]
widgets = {
"label": forms.TextInput(),
"placeholder": forms.TextInput(),
}
class PromptForm(forms.Form):
"""Dynamically created form based on PromptStage"""