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
bdb750ba
Commit
bdb750ba
authored
Oct 28, 2016
by
Daniel W Bond
Browse files
added size and form-control css classes to room selection widget
parent
cbd1ae75
Changes
1
Show whitespace changes
Inline
Side-by-side
roomlist/accounts/templates/room_select_widget.html
View file @
bdb750ba
{% load humanize %}
<label>
Neighborhood
</label>
<select
id=
"neighborhood"
name=
"neighborhood"
>
<div
class=
"col-md-3 col-sm-6"
>
<label>
Neighborhood
</label><br/>
<select
id=
"neighborhood"
name=
"neighborhood"
class=
"form-control"
>
{% for neighborhood in neighborhoods %}
{% if user.student.get_building.neighbourhood == neighborhood.0 %}
<option
value=
"{{ neighborhood.0 }}"
selected=
"selected"
>
{{ neighborhood.1 }}
</option>
...
...
@@ -9,8 +10,10 @@
{% endif %}
{% endfor %}
</select>
<label>
Building
</label>
<select
id=
"building"
name=
"building"
>
</div>
<div
class=
"col-md-3 col-sm-6"
>
<label>
Building
</label><br/>
<select
id=
"building"
name=
"building"
class=
"form-control"
>
<option
value=
""
>
---
</option>
{% for building in buildings %}
{% if user.student.get_building == building %}
...
...
@@ -20,8 +23,10 @@
{% endif %}
{% endfor %}
</select>
<label>
Floor
</label>
<select
id=
"floor"
name=
"floor"
>
</div>
<div
class=
"col-md-3 col-sm-6"
>
<label>
Floor
</label><br/>
<select
id=
"floor"
name=
"floor"
class=
"form-control"
>
<option
value=
""
>
---
</option>
{% load cache %}
{% cache 3600 floor_list %}
...
...
@@ -30,8 +35,10 @@
{% endfor %}
{% endcache %}
</select>
<label>
Room
</label>
<select
id=
"room"
name=
"room"
class=
"roompicker"
>
</div>
<div
class=
"col-md-3 col-sm-6"
>
<label>
Room
</label><br/>
<select
id=
"room"
name=
"room"
class=
"roompicker form-control"
>
<option
value=
""
>
---
</option>
{% cache 3600 room_list %}
{% for room in rooms %}
...
...
@@ -39,3 +46,4 @@
{% endfor %}
{% endcache %}
</select>
</div>
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