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

added size and form-control css classes to room selection widget

parent cbd1ae75
{% load humanize %} {% load humanize %}
<label>Neighborhood</label>&nbsp; <div class="col-md-3 col-sm-6">
<select id="neighborhood" name="neighborhood"> <label>Neighborhood</label><br/>
<select id="neighborhood" name="neighborhood" class="form-control">
{% for neighborhood in neighborhoods %} {% for neighborhood in neighborhoods %}
{% if user.student.get_building.neighbourhood == neighborhood.0 %} {% if user.student.get_building.neighbourhood == neighborhood.0 %}
<option value="{{ neighborhood.0 }}" selected="selected">{{ neighborhood.1 }}</option> <option value="{{ neighborhood.0 }}" selected="selected">{{ neighborhood.1 }}</option>
...@@ -9,8 +10,10 @@ ...@@ -9,8 +10,10 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</select> </select>
&nbsp;&nbsp;<label>Building</label>&nbsp; </div>
<select id="building" name="building"> <div class="col-md-3 col-sm-6">
<label>Building</label><br/>
<select id="building" name="building" class="form-control">
<option value="">---</option> <option value="">---</option>
{% for building in buildings %} {% for building in buildings %}
{% if user.student.get_building == building %} {% if user.student.get_building == building %}
...@@ -20,8 +23,10 @@ ...@@ -20,8 +23,10 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</select> </select>
&nbsp;&nbsp;<label>Floor</label>&nbsp; </div>
<select id="floor" name="floor"> <div class="col-md-3 col-sm-6">
<label>Floor</label><br/>
<select id="floor" name="floor" class="form-control">
<option value="">---</option> <option value="">---</option>
{% load cache %} {% load cache %}
{% cache 3600 floor_list %} {% cache 3600 floor_list %}
...@@ -30,8 +35,10 @@ ...@@ -30,8 +35,10 @@
{% endfor %} {% endfor %}
{% endcache %} {% endcache %}
</select> </select>
&nbsp;&nbsp;<label>Room</label>&nbsp; </div>
<select id="room" name="room" class="roompicker"> <div class="col-md-3 col-sm-6">
<label>Room</label><br/>
<select id="room" name="room" class="roompicker form-control">
<option value="">---</option> <option value="">---</option>
{% cache 3600 room_list %} {% cache 3600 room_list %}
{% for room in rooms %} {% for room in rooms %}
...@@ -39,3 +46,4 @@ ...@@ -39,3 +46,4 @@
{% endfor %} {% endfor %}
{% endcache %} {% endcache %}
</select> </select>
</div>
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