comparison gpp/templates/membermap/index.html @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children b6263ac72052
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 {% extends 'base.html' %}
2 {% block title %}Member Map{% endblock %}
3 {% block custom_js %}
4 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.2.6.min.js"></script>
5 <script type="text/javascript" src="{{ MEDIA_URL }}js/membermap.js"></script>
6 <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAql_1Xw9MGW3mOxzo8gLb3hStsp1UIpjYO7Py4hlJXjRzAdyQtBTt5uM4QCgXtTKcuwba8HA9TL9LgQ" type="text/javascript"></script>
7 {{ form.media }}
8 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/membermap.css" />
9 <script type="text/javascript">
10 //<![CDATA[
11 var mmapUser = {
12 {% if user.is_authenticated %}
13 userName : "{{ user.username }}",
14 userId : "{{ user.id }}"
15 {% else %}
16 userName : null,
17 userId : null
18 {% endif %}
19 };
20 //]]>
21 </script>
22 {% endblock %}
23 {% block content %}
24 <h2>Member Map</h2>
25 <div id="member_map_main">
26 {% if user.is_authenticated %}
27 <div id="member_map_top">
28 Members on the map: <span id="member_map_count">0</span> &bull; Recent updates:
29 <select id="member_map_recent"><option value="0" selected="selected">(select)</option></select>
30 </div>
31 {% endif %}
32 <div>
33 {% if user.is_authenticated %}
34 <div id="member_map_members_column">
35 Members:<br />
36 <select id="member_map_members" multiple="multiple">
37 </select>
38 </div>
39 {% endif %}
40 <div id="member_map_map">
41 </div>
42 </div>
43 <div id="member_map_info">
44 {% if user.is_authenticated %}
45 <p id="member_map_directions"></p>
46 <p>
47 The location you enter below will not be shown to others, but can be determined from the map.
48 For privacy reasons, we don't recommend you enter your exact address. Use a nearby intersection,
49 landmark, or just keep it city and state.
50 </p>
51 <p>
52 Example locations:
53 </p>
54 <ul>
55 <li>3rd and Main, Chicago, IL</li>
56 <li>Tucson, Arizona</li>
57 <li>Rome, Italy</li>
58 <li>5018EA, Tilburg, Netherlands</li>
59 </ul>
60 <form action="" method="post">
61 {{ form.as_p }}
62 <p>
63 <input type="submit" id="member_map_submit" name="submit" value="Submit" />
64 <input type="submit" id="member_map_delete" name="delete" value="Delete" />
65 </p>
66 </form>
67 {% else %}
68 <p>
69 The member map allows members to place themselves on a google map along with a short message.
70 This feature is only for registered users of SurfGuitar101.com. Please
71 <a href="{% url accounts-login %}">login</a> or
72 <a href="{% url accounts-register %}">register</a> to use the member map.
73 </p>
74 {% endif %}
75 </div>
76 </div>
77 {% endblock %}