Mercurial > public > sg101
view sg101/templates/bandmap/add.html @ 821:71db8076dc3d
Bandmap WIP: geocoding integrated with add form.
Add form works. Before submitting the form, client side JS makes
a geocode request to Google and populates hidden lat/lon fields
with the result. Successfully created a model instance on the
server side.
Still need to update admin dashboard, admin approval, and give
out badges for adding bands to the map. Once that is done, then
work on displaying the map with filtering.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 23 Sep 2014 20:40:31 -0500 |
parents | 9a0df7bd2409 |
children | 5103edd3acc4 |
line wrap: on
line source
{% extends 'bandmap/bandmap_base.html' %} {% block bandmap_content %} <h3>Add Band</h3> {% if messages %} <ul class="user-messages"> {% for message in messages %} <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li> {% endfor %} </ul> {% endif %} <p> To add a band to our map, please fill out the form, below. The information will be reviewed by our staff and will normally be published within 24 hours. </p> <p>The <em>location</em> field is important. Please enter an address and/or city and state. For privacy reasons we don't recommend using an exact street address unless it is a public place or landmark special to the band (such a frequently played venue). Any text that you can use on Google Maps can be used here. </p> <p> Example locations: </p> <ul> <li>3rd and Main, Chicago, IL</li> <li>Tucson, Arizona</li> <li>The Purple Orchid, El Segundo, CA</li> <li>Rome, Italy</li> <li>5018EA, Tilburg, Netherlands</li> </ul> <form id="bandmap-add-form" action="." method="post">{% csrf_token %} <table> {{ form.as_table }} <tr> <td> </td> <td> <input id="bandmap-add-submit" type="submit" name="submit_button" value="Submit" /> </td> </tr> </table> </form> {% endblock %}