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
SRCT
roomlist
Commits
a8ea548d
Commit
a8ea548d
authored
May 26, 2017
by
Daniel W Bond
Browse files
moved last of form-control css classes to forms.py from views.py
parent
2f35e106
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/forms.py
View file @
a8ea548d
...
...
@@ -80,6 +80,7 @@ class StudentUpdateForm(forms.Form):
required
=
False
)
show_gender
=
BooleanRadioField
(
required
=
True
)
# this is not required if a student is an RA or an RD
on_campus
=
BooleanRadioField
(
required
=
True
)
room
=
SelectRoomField
(
queryset
=
Room
.
objects
.
all
(),
required
=
False
)
...
...
@@ -88,8 +89,10 @@ class StudentUpdateForm(forms.Form):
# exclude self from request in form instantiation
blocked_kids
=
forms
.
ModelMultipleChoiceField
(
queryset
=
Student
.
objects
.
all
(),
required
=
False
)
blocked_kids
.
widget
.
attrs
[
'class'
]
=
'form-control chosen-select'
major
=
forms
.
ModelMultipleChoiceField
(
queryset
=
Major
.
objects
.
all
(),
required
=
False
)
major
.
widget
.
attrs
[
'class'
]
=
'form-control chosen-select'
graduating_year
=
forms
.
IntegerField
(
max_value
=
9999
,
min_value
=-
9999
,
required
=
False
)
graduating_year
.
widget
.
attrs
[
'class'
]
=
'form-control'
...
...
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