Passed
Push — main ( 87d4f4...869e7e )
by Jochen
04:23
created

byceps.blueprints.admin.consent.forms   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 21
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0
wmc 0
1
"""
2
byceps.blueprints.admin.consent.forms
3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4
5
:Copyright: 2006-2021 Jochen Kupperschmidt
6
:License: Revised BSD (see `LICENSE` file for details)
7
"""
8
9 1
from flask_babel import lazy_gettext
10 1
from wtforms import StringField
11 1
from wtforms.validators import InputRequired, Length
12
13 1
from ....util.l10n import LocalizedForm
14
15
16 1
class SubjectCreateForm(LocalizedForm):
17 1
    subject_name = StringField(lazy_gettext('Internal name'), [InputRequired(), Length(max=40)])
18 1
    subject_title = StringField(lazy_gettext('Internal title'), [InputRequired(), Length(max=40)])
19 1
    checkbox_label = StringField(lazy_gettext('Checkbox label'), [InputRequired(), Length(max=200)])
20
    checkbox_link_target = StringField(lazy_gettext('Checkbox label link target'), [InputRequired(), Length(max=200)])
21