summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-03-27 07:40:57 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-03-27 07:40:57 +0100
commit8180aad8438800056fb4baeedde12120f8bd90c6 (patch)
tree4d157117fbb40e3de80362a717faaf9546b9c096
parent4896d8f4192a7f1473922475350c1675c05633da (diff)
city is entirely optional now
-rw-r--r--index.pl3
-rw-r--r--templates/main.html.ep2
2 files changed, 1 insertions, 4 deletions
diff --git a/index.pl b/index.pl
index 6dcee58..6bd4844 100644
--- a/index.pl
+++ b/index.pl
@@ -130,9 +130,6 @@ sub get_results {
}
else {
my $efa_url = 'http://efa.vrr.de/vrr/XSLT_DM_REQUEST';
- if ( not $city ) {
- return { errstr => 'City must be specified for this backend' };
- }
if ($sub_backend) {
my $service
= first { lc( $_->{shortname} ) eq lc($sub_backend) }
diff --git a/templates/main.html.ep b/templates/main.html.ep
index 496ef96..c44ac83 100644
--- a/templates/main.html.ep
+++ b/templates/main.html.ep
@@ -105,7 +105,7 @@ und wird derzeit nicht aktiv gepflegt oder weiterentwickelt. Alle Angaben ohne G
%= form_for _redirect => begin
<div>
<div class="field">
- <div class="desc">Stadt (Pflichtfeld für EFA-Backends, sonst optional)</div>
+ <div class="desc">Stadt (optional, kann auch Teil der Haltestelle sein)</div>
<div>
% if (stash('place_candidates') and @{ stash('place_candidates') } ) {
% my @candidates = map { [ $_, $_ ] } @{ stash('place_candidates') };