From ff775252afbf00242d5014c6f576f096ebca5d9d Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 21 Jun 2025 10:41:28 +0200 Subject: add journey: do not hardcode backend --- templates/add_journey.html.ep | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/add_journey.html.ep b/templates/add_journey.html.ep index c543781..046ca43 100644 --- a/templates/add_journey.html.ep +++ b/templates/add_journey.html.ep @@ -34,9 +34,21 @@ „ICE 100“, „S 1 31133“ oder „ABR RE11 26720“
  • Wenn Nummer nicht bekannt oder vorhanden: einen beliebigen Integer eintragen, z.B. „S 5X 0“ oder „U 11 0“
  • Zeitangaben im Format DD.MM.YYYY HH:MM
  • +
  • Das ausgewählte Backend bestimmt die verfügbaren Halte für Start, Ziel und Route. Siehe auch stops.csv
  • +
    +
    + % my $self_link = url_for('add_journey'); + % if (current_user->{backend_id}) { + <%= current_user->{backend_name} %> + % } + % else { + IRIS + % } +
    +
    %= form_for '/journey/add' => (method => 'POST') => begin %= csrf_field
    @@ -54,7 +66,7 @@
    %= text_field 'dep_station', id => 'dep_station', class => 'autocomplete validate', autocomplete => 'off', required => undef - +
    %= text_field 'sched_departure', id => 'sched_departure', class => 'validate', required => undef, pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9] +[0-9][0-9]:[0-9][0-9]' @@ -68,7 +80,7 @@
    %= text_field 'arr_station', id => 'arr_station', class => 'autocomplete validate', autocomplete => 'off', required => undef - +
    %= text_field 'sched_arrival', id => 'sched_arrival', class => 'validate', required => undef, pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9] +[0-9][0-9]:[0-9][0-9]' -- cgit v1.2.3