admin: add flow-stage-bindings, add policy-bindings, add prompts
This commit is contained in:
@ -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"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user