Rework the Add Store to use clientside geocoding.

This commit is contained in:
2013-04-01 17:17:31 +01:00
parent ec6a2accc3
commit 036d70ce98
5 changed files with 48 additions and 5 deletions

View File

@@ -1,10 +1,16 @@
{% extends "base.html" %}
{% load bootstrap %}
{% load staticfiles %}
{% block style %}
{{ form.media }}
{% endblock %}
{% block scripts %}
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="{% static "js/geocoder.js" %}"></script>
{% endblock %}
{% block content %}
<div class="page-header">
<h1>Add Store ({{ wizard.steps.step1 }} of {{ wizard.steps.count }})</h1>
@@ -18,6 +24,6 @@
<button name="wizard_goto_step" class="btn" type="submit" value="{{ wizard.steps.first }}">First Step</button>
<button name="wizard_goto_step" class="btn" type="submit" value="{{ wizard.steps.prev }}">Previous Step</button>
{% endif %}
<button name="wizard_goto_step" class="btn" type="submit" value="{{ wizard.steps.next }}">Next Step</button>
<button class="btn" type="submit">Next Step</button>
</form>
{% endblock %}