]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blob - wradmin/templates/coordtool.html
coordtool.html now uses jinja2.
[philipp/winterrodeln/wradmin.git] / wradmin / templates / coordtool.html
1 {% extends "master.html" %}
2 {% block title %}Koordinaten-Rechner{% endblock %}
3
4 {% block content %}
5 <h2>Koordinaten-Rechner</h2>
6
7 {% if not result %}
8 <p>Werkzeug für die Koordinatenumrechnung. Das Quellformat braucht nicht angegeben zu werden, es sollte automatisch erkannt werden. Wenn mehr als eine Koordinate gleichzeitig umgerechnet werden soll, dann bitte pro Zeile eine Koordinate angeben.</p>
9 {% endif %}
10
11 {% if result and not no_geoformat %}
12 <h3>Winterrodeln-Format</h3>
13 <p>
14     {% for line in result %}
15     {{geo_winterrodeln([line])}}<br/>
16     {% endfor %}
17 </p>
18 {% endif %}
19
20 {% if result and not no_gmapsformat %}
21 <h3>Google Maps Plugin Format</h3>
22 <p>
23     {% for line in result %}
24     {{geo_gmapplugin([line])}}<br/>
25     {% endfor %}
26 </p>
27 {% endif %}
28
29 {% if result and not no_gpxformat %}
30 <h3>GPX Format</h3>
31 <p>
32     {% for line in result %}
33     {{geo_gpx([line])}}<br/>
34     {% endfor %}
35 </p>
36 {% endif %}
37
38 {% if result and not no_geocachingformat %}
39 <h3>Geocaching-Format</h3>
40 <p>
41     {% for line in result %}
42     {{geo_geocaching([line])}}<br/>
43     {% endfor %}
44 </p>
45 {% endif %}
46
47 <form action="{{url_for('coordtool_convert')}}" method="post">
48 <table>
49     <tr><th></th><th>Beispiel</th></tr>
50     <tr><td><textarea name="input" cols="80" rows="10"></textarea></td>
51     <td>
52         <p>47.222134 N 11.467211 E<br/>
53            47.222143 N 11.467209 E<br/>
54            47.222153 N 11.467210 E</p>
55         <p>N 47° 14.912 E 011° 27.432<br/>
56            N 47° 14.925 E 011° 27.439<br/>
57            N 47° 14.936 E 011° 27.440</p>
58         <p>47.232922, 11.452239<br/>
59            47.233008, 11.452201<br/>
60            47.233810, 11.452150</p>
61     </td></tr>
62     <tr><td><input type="checkbox" name="no_elevation" />Höhe weglassen</td><td></td></tr>
63     <tr><td><input type="checkbox" name="simplify" /> Weg vereinfachen <em>(noch nicht implementiert)</em></td><td></td></tr>
64     <tr><td><input type="checkbox" name="swap_latlon" />Geogr. Länge und Breite vertauschen</td><td></td></tr>
65     <tr><td><input type="checkbox" name="no_geoformat" /> Zielformat <strong>&lt;geo&gt;</strong> auslassen</td><td>47.222134 N 11.467211 E</td></tr>
66     <tr><td><input type="checkbox" name="no_gpxformat" /> Zielformat <strong>&lt;GPX&gt;</strong> auslassen</td><td>&lt;trkpt lat="47.181289" lon="11.408827"&gt;&lt;ele&gt;1090.57&lt;/ele&gt;&lt;/trkpt&gt;</td></tr>
67     <tr><td><input type="checkbox" name="no_gmapsformat" /> Zielformat <strong>Google Maps Plugin</strong> auslassen</td><td>47.232922, 11.452239</td></tr>
68     <tr><td><input type="checkbox" name="no_geocachingformat" /> Zielformat <strong>Geocaching</strong> auslassen</td><td>N 47° 14.029 E 011° 27.129</td></tr>
69     <tr><td><input type="submit" value="Konvertieren"/></td><td></td></tr>
70 </table>
71 </form>
72
73 {% endblock %}