summaryrefslogtreecommitdiff
path: root/templates/disambiguation.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-08-24 21:26:00 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-08-24 21:26:00 +0200
commitd313ca7fc1113e0e4a66415a000de27d8e5a3e81 (patch)
treeab1336ac1f6b21ad95bc7956a337983542949334 /templates/disambiguation.html.ep
parentd23283329df18171fbc0f965d42c9af37c175084 (diff)
resolve unknown/ambiguous stop into list of stops
Diffstat (limited to 'templates/disambiguation.html.ep')
-rw-r--r--templates/disambiguation.html.ep20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/disambiguation.html.ep b/templates/disambiguation.html.ep
new file mode 100644
index 0000000..270aa99
--- /dev/null
+++ b/templates/disambiguation.html.ep
@@ -0,0 +1,20 @@
+<div class="row">
+ <div class="col s12">
+ <div class="card info-color">
+ <div class="card-content">
+ <span class="card-title">Mehrdeutige Eingabe</span>
+ <p>„<%= $station %>“ ist nicht eindeutig. Bitte wähle eine der folgenden Optionen aus.</p>
+ </div>
+ </div>
+ </div>
+</div>
+
+<div class="row">
+ <div class="col s12">
+ <ul class="suggestions">
+ % for my $suggestion (@{$suggestions // []}) {
+ <li><a href="<%= url_for('station' => $suggestion->{eva}) . (param('hafas') ? '?hafas=1' : q{}) %>"><%= $suggestion->{name} %></a></li>
+ % }
+ </ul>
+ </div>
+</div>