summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-01-31 18:16:00 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2020-01-31 18:16:00 +0100
commitaa7a7db2bcd6ae8cf0caef37d436bcb2ae162d5b (patch)
tree65c2b81918636d935f4dfd7424812a4641f635b3 /templates
parent7e92e6b5d454ca61c77ed4ee217d179fc0038459 (diff)
map: show polylines by default
Diffstat (limited to 'templates')
-rw-r--r--templates/_map.html.ep2
-rw-r--r--templates/history_map.html.ep32
2 files changed, 30 insertions, 4 deletions
diff --git a/templates/_map.html.ep b/templates/_map.html.ep
index 3918b4a..2e6dad8 100644
--- a/templates/_map.html.ep
+++ b/templates/_map.html.ep
@@ -8,7 +8,7 @@
<div class="row">
<div class="col s12">
<span style="color: #f03;">●</span> Ein-/Ausstiegsstation<br/>
- <span style="color: #673ab7;">—</span> Luftlinie zwischen Unterwegshalten
+ <span style="color: #673ab7;">—</span> Streckenverlauf oder Luftlinie
</div>
</div>
diff --git a/templates/history_map.html.ep b/templates/history_map.html.ep
index c0eea4c..51f002e 100644
--- a/templates/history_map.html.ep
+++ b/templates/history_map.html.ep
@@ -11,8 +11,34 @@
%= include '_map', station_coordinates => $station_coordinates, polyline_groups => $polyline_groups
-%= form_for '/history/map' => (method => 'POST') => begin
- %= csrf_field
+%= form_for '/history/map' => begin
+ <p>
+ Detailgrad und Filter:
+ </p>
+ <div class="row">
+ <div class="input-field col s12">
+ <label>
+ %= radio_button route_type => 'polyline'
+ <span>Nur Zugfahrten mit bekanntem Streckenverlauf eintragen</span>
+ </label>
+ </div>
+ </div>
+ <div class="row">
+ <div class="input-field col s12">
+ <label>
+ %= radio_button route_type => 'polybee'
+ <span>Streckenverlauf wenn bekannt, sonst Luftlinie zwischen Unterweghalten</span>
+ </label>
+ </div>
+ </div>
+ <div class="row">
+ <div class="input-field col s12">
+ <label>
+ %= radio_button route_type => 'beeline'
+ <span>Immer Luftlinie zwischen Unterwegshalten zeigen</span>
+ </label>
+ </div>
+ </div>
<div class="row">
<div class="input-field col s12">
<label>
@@ -23,7 +49,7 @@
</div>
<div class="row">
<div class="col s12 center-align">
- <button class="btn wave-effect waves-light" type="submit" name="action" value="go">
+ <button class="btn wave-effect waves-light" type="submit">
Anzeigen
</button>
</div>