Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
research-questions
Commits
1b308289
Commit
1b308289
authored
Mar 21, 2014
by
Jean Michel Rouly
Browse files
Added section id filter form
parent
b4ec5c9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
researchquestions/website/forms.py
View file @
1b308289
...
...
@@ -63,3 +63,11 @@ class ReplyForm( ModelForm ):
class
FeedbackForm
(
forms
.
Form
):
text
=
forms
.
CharField
(
widget
=
forms
.
Textarea
(
attrs
=
{
'class'
:
'form-control'
}),
max_length
=
1000
)
class
CourseSectionFilterForm
(
forms
.
Form
):
section
=
forms
.
CharField
(
widget
=
forms
.
TextInput
(
attrs
=
{
'class'
:
'form-control'
,
'placeholder'
:
'Course Section'
,
'pattern'
:
'[a-zA-Z]+ {0,1}[0-9]*'
,
}),
max_length
=
10
)
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