-
Notifications
You must be signed in to change notification settings - Fork 0
/
forms.py
33 lines (28 loc) · 900 Bytes
/
forms.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
"""
Forms for the OAS plugin.
"""
__copyright__ = "Copyright 2024 Birkbeck, University of London"
__author__ = "Martin Paul Eve"
__license__ = "AGPL v3"
__maintainer__ = "Birkbeck University of London"
from django import forms
class OASManagerForm(forms.Form):
"""
The form for the OAS manager.
"""
enabled = forms.BooleanField(
required=False, help_text="Whether to send p1-pio messages."
)
sandbox = forms.BooleanField(
required=False, help_text="Whether to run in sandbox mode."
)
email = forms.CharField(help_text="The email login credential.")
password = forms.CharField(
help_text="The password login credential.",
)
url = forms.CharField(
help_text="The URL for the live deposit.", label="URL"
)
sandbox_url = forms.CharField(
help_text="The URL for the sandbox site.", label="Sandbox URL"
)