Commit b81cf8fd authored by Daniel W Bond's avatar Daniel W Bond
Browse files

the major selector is on the welcome_major page, not the welcome_privacy page,...

the major selector is on the welcome_major page, not the welcome_privacy page, or: gdi, this is why you should test even the most basic of changes
parent 37197e6d
......@@ -2,6 +2,10 @@
{% block title %} SRCT RoomList | Welcome | Step 3 of 4 {% endblock %}
{% block css %}
<link href="/static/css/chosen.min.css" rel="stylesheet" media="screen">
{% endblock css %}
{% block message_queue %}
{% endblock %}
......@@ -61,5 +65,11 @@
</div>
</div>
{% endblock %}
{% block javascript %}
<script type="text/javascript" src="/static/js/chosen.min.js"></script>
<script>
$(".chosen-select").chosen()
</script>
{% endblock javascript %}
......@@ -2,10 +2,6 @@
{% block title %} SRCT RoomList | Welcome | Step 2 of 4 {% endblock %}
{% block css %}
<link href="/static/css/chosen.min.css" rel="stylesheet" media="screen">
{% endblock css %}
{% block message_queue %}
{% endblock %}
......@@ -126,8 +122,5 @@
{% block javascript %}
<script type="text/javascript" src="/static/js/chained.min.js"></script>
<script type="text/javascript" src="/static/js/chosen.min.js"></script>
<script>
$(".chosen-select").chosen()
</script>
{% include 'room_selection_script.html' %}
{% endblock javascript %}
......@@ -104,7 +104,6 @@ class WelcomePrivacy(LoginRequiredMixin, FormView):
'privacy': me.privacy, })
form.fields['room'].widget.user = self.request.user
form.fields['major'].widget.attrs['class'] = 'chosen-select'
context['my_form'] = form
......@@ -179,8 +178,9 @@ class WelcomeMajor(LoginRequiredMixin, FormView):
form = WelcomeMajorForm(initial={'major': me.major,
'graduating_year': me.graduating_year, })
context['my_form'] = form
form.fields['major'].widget.attrs['class'] = 'chosen-select'
context['my_form'] = form
context['student'] = me
return context
......
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