Zugfahrt eingeben
% if (not journeys->get_oldest_ts(uid => current_user->{id})) {
Hinweis
travelynx ist darauf ausgelegt, über die Hauptseite in
Echtzeit in Züge ein- und auszuchecken. Die manuelle
Eingabe von Zugfahrten ist nur als Notlösung vorgesehen.
% }
% if ($error) {
Ungültige Eingabe
<%= $error %>
% }
Eingabe des Zugs als „Zug Typ Nummer“ oder „Zug Nummer“, z.B.
„ICE 100“, „S 1 31133“ oder „ABR RE11 26720“
Wenn Zugnummer nicht bekannt: einen beliebigen Integer eintragen, z.B. "S 5X 0"
Zeitangaben im Format DD.MM.YYYY HH:MM
%= form_for '/journey/add' => (method => 'POST') => begin
%= csrf_field
%= text_field 'train', id => 'train', class => 'validate', required => undef, pattern => '[0-9a-zA-Z]+ +[0-9a-zA-Z]* *[0-9]+'
Zug (Typ Linie Nummer)
%= check_box cancelled => 1
Fahrt ist ausgefallen
%= text_field 'dep_station', id => 'dep_station', class => 'autocomplete validate', autocomplete => 'off', required => undef
Start (Name oder DS100)
%= 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]'
Geplante Abfahrt
%= text_field 'rt_departure', id => 'rt_departure', class => 'validate', 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]'
Tatsächliche Abfahrt (wenn leer: pünktlich)
%= text_field 'arr_station', id => 'arr_station', class => 'autocomplete validate', autocomplete => 'off', required => undef
Ziel (Name oder DS100)
%= 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]'
Geplante Ankunft
%= text_field 'rt_arrival', id => 'rt_arrival', class => 'validate', 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]'
Tatsächliche Ankunft (wenn leer: pünktlich)
%= text_area 'route', id => 'route', class => 'materialize-textarea'
Unterwegshalte (optional, eine Station pro Zeile, DS100 möglich)
%= text_field 'comment'
Kommentar
%= end