Commits

Colin Copeland  committed 4b9a02a

update houses page with style

  • Participants
  • Parent commits e000b68

Comments (0)

Files changed (5)

File lib/copelco/apps/estate/static/css/estate.css

 div#map-canvas {
-    height: 500px;
-    width: 50%;
-    float: left;
+    height: 400px;
+    width: 100%;
 }
 
-#sidepane {
-    width: 49%;
-    float: right;
-    font-size: 12px;
+#houses_wrapper {
+    margin-top: 1em;
 }
 
 #houses_wrapper table {
     width: 100%;
 }
 
+div#info {
+    margin-top: 1em;
+}

File lib/copelco/apps/estate/static/js/estate.js

         size: new google.maps.Size(150,50)
       });
       
-    $.getJSON('/estate/map/markers/', function(data) {
+    $.getJSON('/houses/map/markers/', function(data) {
         $(data).each(function (idx, item) {
             var latlon = item.coords.split(',');
             var point = new google.maps.LatLng(latlon[0], latlon[1]);
             google.maps.event.addListener(marker, 'click', function() {
                 infowindow.open(map, marker);
                 infowindow.setContent(item.address);
-                $.getJSON('/estate/map/info/', {'house_id': item.id}, function(result) {
+                $.getJSON('/houses/map/info/', {'house_id': item.id}, function(result) {
                     info.empty();
                     info.append($('<h2>').text(result.address));
                     var ul = $('<ul>');

File lib/copelco/templates/base.html

 {% extends 'base_site.html' %}
 
 {% block wrapper %}
-{% block content %}{% endblock %}
+<div class="grid_12">
+    {% block content %}{% endblock %}
+</div>
+<div class="clear"></div>
 {% endblock %}

File lib/copelco/templates/estate/map.html

-{% extends 'base.html' %}
+{% extends "base.html" %}
 
 {% block css %}
     <link type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/redmond/jquery-ui.css" />
 {% endblock %}
 
 {% block content %}
-    <div id='sidepane'>
-        <table id='houses'></table>
-        <div id='info'></div>
-    </div>
-    <div id='map-canvas'></div>
+    <div id="map-canvas"></div>
+    <table id="houses"></table>
+    <div id="info"></div>
 {% endblock %}

File lib/copelco/urls.py

           {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}))
 
 urlpatterns += patterns('',
-    url(r'^%sestate/' % settings.URL_PREFIX, include('copelco.apps.estate.urls')),
+    url(r'^%shouses/' % settings.URL_PREFIX, include('copelco.apps.estate.urls')),
 )
-