Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
redl
redeleitsystem
Commits
404e66e7
Commit
404e66e7
authored
Nov 07, 2015
by
Hinrikus Wolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forms: add support for naming speakers
parent
018e62b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
models/forms.py
models/forms.py
+5
-0
No files found.
models/forms.py
View file @
404e66e7
...
...
@@ -25,6 +25,11 @@ class AdminUserForm(Form):
class
AddStatementForm
(
Form
):
speaker_name
=
StringField
(
"Speaker"
,
validators
=
[
InputRequired
(
"Entering the speaker is required."
)])
topic
=
HiddenField
(
"Topic"
)
class
AddNameToSpeaker
(
Form
):
speaker_name
=
StringField
(
"Speaker"
,
validators
=
[
InputRequired
(
"Entering the speaker is required."
)])
speaker_id
=
HiddenField
(
"Speaker_Id"
,
validators
=
[
NumberRange
(
min
=
0
,
message
=
None
),
InputRequired
(
"ID must be a positve Integer."
)])
event
=
HiddenField
(
"Event"
)
class
NewEventForm
(
Form
):
name
=
StringField
(
"Name"
,
validators
=
[
InputRequired
(
"Entering the name is required."
)])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment