Skip to content

Commit

Permalink
changes made to place.html
Browse files Browse the repository at this point in the history
  • Loading branch information
liwance committed May 4, 2011
1 parent 398fbb1 commit e914b4a
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 15 deletions.
41 changes: 33 additions & 8 deletions media/stylesheets/twfa.css
Expand Up @@ -276,8 +276,7 @@ section#content ul li{
margin-left: 20px;
list-style-type: circle;
}

}


/* divs for stack layout */
section#content div#about_intro {
Expand Down Expand Up @@ -307,11 +306,41 @@ section#content div#bodycopy{
margin-left: auto;
margin-right: auto;
position: relative;
min-height: 400px;
padding-left: 65px;
min-height: 500px;
padding-left: 20px;
padding-top: 20px;

}

section#content div#bodycopy1{
width: 100%;
float: left;
margin-left: auto;
margin-right: auto;
position: relative;
min-height: 500px;
padding-top: 20px;

}


section#content div.bodymap{
width: 100%;
float: left;
margin-left: auto;
margin-right: auto;
position: relative;
min-height: 500px;
padding: 10px;
border: 1px;


}





section#content div#bodycopy p{
font-size: 12pt;
padding-right: 65px;
Expand Down Expand Up @@ -484,10 +513,6 @@ section#content div.full {
}






#example{
color: #5f5151;
font-size: 17px;
Expand Down
28 changes: 21 additions & 7 deletions templates/place.html
Expand Up @@ -4,7 +4,7 @@
<style type="text/css" media="screen">
div#map{
width: 100%;
min-height: 400px;
min-height: 500px;
}
</style>
{% endblock %}
Expand All @@ -15,22 +15,36 @@
<h1>{{ place }}</h1>
{% endblock %}
{% block content %}
<div class="full">

<div class="default_background">
<h1>
<img align= "Left" img src ="../images/default_logo.png"/>
</h1>
</div>


<div id="bodymap">
{% if place.in_districts.count > 5 %}
<p><strong>{{ place.name }}</strong> is in more than 5 districts. To get a more helpful result, please be more specific. Try entering a zip code or full address.</p>
<p><strong>{{ place.name }}</strong> is in more than 5 districts. To get a more helpful result, please be more specific. Try entering a zip code or full address.</p>
<form action="{% url addresscheck %}" method="post">
{{ where_form }}
<input type="submit" value="Find District">
</form>
{% endif %}



<script type="text/javascript" charset="utf-8">
{{ place.gmap.render }}
</script>
<div id="map">
&nbsp;
</div>
</div>
<div class="full">
<p>In {% for district in place.in_districts %}{% if not forloop.first %}, {% endif %}<a href="{{ district.get_absolute_url }}">{{district}}</a>{% endfor %}.</p>

<br>

<p>In {% for district in place.in_districts %}{% if not forloop.first %}, {% endif %}<a href="{{ district.get_absolute_url }}">{{district}}</a>{% endfor %}.</p>
<br>
</div>

{% endblock %}

0 comments on commit e914b4a

Please sign in to comment.