Total Complexity | 0 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 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 |