Commit 6338c43b authored by Jason Yeomans's avatar Jason Yeomans
Browse files

Building List template created

parent 30e7c113
......@@ -12,7 +12,9 @@ def index(request):
return HttpResponse(template.render(context))
def buildings(request):
building_list = Building.objects.order_by('name')[:5]
template = loader.get_template('buildings.html')
context = RequestContext(request, {
'building_list' : building_list,
return HttpResponse(template.render(context))
{% extends 'layouts/base.html' %}
{% block title %}
GMU RoomList • Homepage
{% endblock %}
{% block content %}
<div class="page-header" id="banner">
<div class="row">
<div class="col-lg-12 text-center">
<p class="lead">Building List</p>
{% for building in building_list %}
{{ }} - {{ building.address }} {{ building.address.zip_code }}, {{ building.address.state}}
{% endfor %}
{% endblock %}
......@@ -7,30 +7,16 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<a class="navbar-brand" href="#">Project name</a>
<a class="navbar-brand" href="/">Project name</a>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li class="dropdown-header">Nav header</li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
<li><a href="/buildings">Buildings</a></li>
<ul class="nav navbar-nav navbar-right">
<li><a href="../navbar/">Default</a></li>
<li><a href="../navbar-static-top/">Static top</a></li>
<li class="active"><a href="./">Fixed top</a></li>
<li><a href="#">Login</a></li>
</div><!--/.nav-collapse -->
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