summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-10-03 12:32:52 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-10-03 12:32:52 +0200
commita96e2d5682e91014b4e071d80b74bcd1ae674b9a (patch)
treec4a6e7d9bdde5be449d93ba0a5cb9ac0d02fd186 /templates
parent429d5b52623bed166808436fa0acf51e8a80e0ad (diff)
parentc3395f3e7a17c8455742f2b9d505342a0f5e21ac (diff)
Merge branch 'master' of lastlight:var/git_root/vrr-fakedisplay
Diffstat (limited to 'templates')
-rw-r--r--templates/main.html.ep16
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/main.html.ep b/templates/main.html.ep
index 589f690..7ecc456 100644
--- a/templates/main.html.ep
+++ b/templates/main.html.ep
@@ -105,13 +105,25 @@ other German transit networks.
<div class="field">
<div class="desc">Stadt</div>
<div>
- %= text_field 'city'
+ % if (stash('place_candidates') and @{ stash('place_candidates') } ) {
+ % my @candidates = map { [ $_, $_ ] } @{ stash('place_candidates') };
+ %= select_field city => \@candidates
+ % }
+ % else {
+ %= text_field 'city'
+ % }
</div>
</div>
<div class="field">
<div class="desc">Haltestelle</div>
<div>
- %= text_field 'stop'
+ % if (stash('name_candidates') and @{ stash('name_candidates') } ) {
+ % my @candidates = map { [ $_, $_ ] } @{ stash('name_candidates') };
+ %= select_field stop => \@candidates
+ % }
+ % else {
+ %= text_field 'stop'
+ % }
%= submit_button 'Display'
</div>
</div>