Permalink
Browse files

Removed map interface since that's now a separate app

  • Loading branch information...
1 parent 8c74bb2 commit c23948fedc7b73309fa5c5803c0c9530751a621f @evz evz committed Feb 14, 2014
Showing with 0 additions and 81 deletions.
  1. +0 −4 app.py
  2. +0 −77 templates/map.html
View
4 app.py
@@ -369,10 +369,6 @@ def detail_aggregate():
def index():
return render_app_template('index.html')
-@app.route('/map/')
-def map():
- return render_app_template('map.html')
-
# UTILITY
def render_app_template(template, **kwargs):
'''Add some goodies to all templates.'''
View
77 templates/map.html
@@ -1,77 +0,0 @@
-{% extends 'base.html' %}
-{% block extra_styles %}
- <link rel="stylesheet" href="/static/css/leaflet.css" />
- <link rel="stylesheet" href="/static/css/leaflet.draw.css" />
-{% endblock %}
-{% block content %}
-<div class="row">
- <div class="col-md-6">
- <div class="row filters">
- <div class="col-md-12">
- <h3>Build a query</h3>
- <div id="filters">
- <form role="form">
- <div class="row">
- <div class="col-md-6">
- <div class="form-group">
- <label for="start-date-filter">Start Date: </label>
- <input id="start-date-filter" class="date-filter form-control" type="text"/>
- </div>
- </div>
- <div class="col-md-6">
- <div class="form-group">
- <label for="end-date-filter">End Date: </label>
- <input id="end-date-filter" class="date-filter form-control" type="text"/>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- <div class="form-group">
- <label for="time-agg-filter">Time aggregate: </label>
- <select id="time-agg-filter">
- <option value="minute">Minute</option>
- <option value="hour">Hour</option>
- <option value="day" selected="true">Day</option>
- <option value="week">Week</option>
- <option value="month">Month</option>
- <option value="quarter">Quarter</option>
- <option value="year">Year</option>
- <option value="decade">Decade</option>
- </select>
- </div>
- </div>
- <div class="col-md-6">
- <button type="button" class="btn btn-success">Submit</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-2 col-md-offset-10">
- </div>
- </div>
- <div class="row">
- <div id="map" class="col-md-12 half-height"></div>
- </div>
- </div>
- <div class="col-md-6">
- <h3>Here is where the response goes</h3>
- <p>We can also show instructions for how to use this junk</p>
- <div id="response">
- </div>
- </div>
-</div>
-<div class="modal fade" id="errorModal" tabindex="-1" role="dialog" aria-labelledby="error" aria-hidden="true"></div>
-{% endblock %}
-{% block extra_javascript %}
- <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
- <script type="text/javascript" src="/static/js/ejs_production.js"></script>
- <script type="text/javascript" src="/static/js/spin.min.js"></script>
- <script type="text/javascript" src="/static/js/jquery.spin.js"></script>
- <script type="text/javascript" src="/static/js/leaflet.js"></script>
- <script type="text/javascript" src="/static/js/leaflet.draw.js"></script>
- <script type="text/javascript" src="/static/js/map.js"></script>
-{% endblock %}

0 comments on commit c23948f

Please sign in to comment.