-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforms.py
More file actions
24 lines (21 loc) · 797 Bytes
/
forms.py
File metadata and controls
24 lines (21 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from django import forms
class NotificationManagerForm(forms.Form):
"""
The form for the notification manager.
"""
enabled = forms.BooleanField(
required=False, help_text="Whether to send messages."
)
authentication_enabled = forms.BooleanField(
required=False, help_text="Whether to send authenticated messages."
)
email = forms.CharField(required=False, help_text="The email login credential.")
password = forms.CharField(
required=False, help_text="The password login credential.",
)
url = forms.CharField(
help_text="The URL for the live deposit.", label="URL"
)
authentication_url = forms.CharField(
required=False, help_text="The URL for the authentication URL.", label="Authentication URL"
)