Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
roomlist
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
roomlist
Commits
a8ea548d
Commit
a8ea548d
authored
May 26, 2017
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved last of form-control css classes to forms.py from views.py
parent
2f35e106
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
roomlist/accounts/forms.py
roomlist/accounts/forms.py
+3
-0
No files found.
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