Fahrt eingeben

% if (not journeys->get_oldest_ts(uid => current_user->{id})) {
Hinweis

travelynx ist darauf ausgelegt, über die Hauptseite in Echtzeit in Verkehrsmittel ein- und auszuchecken. Die manuelle Eingabe von Fahrten ist nur als Notlösung vorgesehen. Hier werden derzeit nur Zugfahrten im DB-Netz (IRIS-Backend) unterstützt.

% } % if ($error) {
Ungültige Eingabe

<%= $error %>

% }
% 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
%= text_field 'train', id => 'train', class => 'validate', required => undef, pattern => '[0-9a-zA-Z]+ +[0-9a-zA-Z]* *[0-9]+'
%= text_field 'dep_station', id => 'dep_station', class => 'autocomplete validate', autocomplete => 'off', required => undef
%= datetime_field 'sched_departure', id => 'sched_departure', class => 'validate', required => undef
%= datetime_field 'rt_departure', id => 'rt_departure', class => 'validate'
%= text_field 'arr_station', id => 'arr_station', class => 'autocomplete validate', autocomplete => 'off', required => undef
%= datetime_field 'sched_arrival', id => 'sched_arrival', class => 'validate', required => undef
%= datetime_field 'rt_arrival', id => 'rt_arrival', class => 'validate'
%= text_area 'route', id => 'route', class => 'materialize-textarea'
Eine Station pro Zeile, wahlweise Unterwegshalte oder komplette Route
Format: Name oder Name @ Zeitpunkt (inkl. Datum, siehe oben)
%= text_field 'comment'
%= end