Commit 8083abd1 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

initial form layouts

parent ac6ff532
......@@ -77,6 +77,10 @@ class StudentUpdateForm(forms.Form):
room = SelectRoomField(queryset=Room.objects.all(), required=False)
privacy = forms.TypedChoiceField(choices=Student.PRIVACY_CHOICES)
# exclude self? .exclude(user=self)
blocked_kids = forms.ModelMultipleChoiceField(queryset=Student.objects.all(),
required=False)
major = forms.ModelChoiceField(queryset=Major.objects.all(), required=False)
graduating_year = forms.IntegerField()
......
......@@ -245,6 +245,15 @@
{{ my_form.privacy }}
</div>
</div>
<hr />
<div class="form-group">
<label for="{{ my_form.blocked_kids.id_for_label }}" class="col-md-2">
Blocked Students
</label>
<div class="col-md-10">
{{ my_form.blocked_kids }}
</div>
</div>
{% endif %}
<hr />
<input type="submit" value="Save" class="btn btn-primary"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment