annotate 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 |
rev |
line source |
bgneal@820
|
1 {% extends 'bandmap/bandmap_base.html' %}
|
bgneal@820
|
2 {% block bandmap_content %}
|
bgneal@820
|
3 <h3>Add Band</h3>
|
bgneal@821
|
4 {% if messages %}
|
bgneal@821
|
5 <ul class="user-messages">
|
bgneal@821
|
6 {% for message in messages %}
|
bgneal@821
|
7 <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
bgneal@821
|
8 {% endfor %}
|
bgneal@821
|
9 </ul>
|
bgneal@821
|
10 {% endif %}
|
bgneal@820
|
11 <p>
|
bgneal@820
|
12 To add a band to our map, please fill out the form, below. The information will
|
bgneal@820
|
13 be reviewed by our staff and will normally be published within 24 hours.
|
bgneal@820
|
14 </p>
|
bgneal@820
|
15 <p>The <em>location</em> field is important. Please enter an address and/or
|
bgneal@820
|
16 city and state. For privacy reasons we don't recommend using an exact street
|
bgneal@820
|
17 address unless it is a public place or landmark special to the band (such
|
bgneal@820
|
18 a frequently played venue). Any text that you can use on Google Maps can be
|
bgneal@820
|
19 used here.
|
bgneal@820
|
20 </p>
|
bgneal@820
|
21 <p>
|
bgneal@820
|
22 Example locations:
|
bgneal@820
|
23 </p>
|
bgneal@820
|
24 <ul>
|
bgneal@820
|
25 <li>3rd and Main, Chicago, IL</li>
|
bgneal@820
|
26 <li>Tucson, Arizona</li>
|
bgneal@820
|
27 <li>The Purple Orchid, El Segundo, CA</li>
|
bgneal@820
|
28 <li>Rome, Italy</li>
|
bgneal@820
|
29 <li>5018EA, Tilburg, Netherlands</li>
|
bgneal@820
|
30 </ul>
|
bgneal@820
|
31
|
bgneal@820
|
32 <form id="bandmap-add-form" action="." method="post">{% csrf_token %}
|
bgneal@820
|
33 <table>
|
bgneal@820
|
34 {{ form.as_table }}
|
bgneal@820
|
35 <tr>
|
bgneal@820
|
36 <td> </td>
|
bgneal@820
|
37 <td>
|
bgneal@821
|
38 <input id="bandmap-add-submit" type="submit" name="submit_button" value="Submit" />
|
bgneal@820
|
39 </td>
|
bgneal@820
|
40 </tr>
|
bgneal@820
|
41 </table>
|
bgneal@820
|
42 </form>
|
bgneal@820
|
43 {% endblock %}
|