Manuell einchecken

% if ($error) {
Ungültige Eingabe

<%= $error %>

% }

Falls die gesuchte Abfahrt nicht vom ausgewählten Backend verfügbar ist, z.B. da es sich um eine Sonderfahrt handelt, ist hier ein manueller Checkin möglich. Nach dem Checkin werden alle Daten so beibehalten wie sie eingegeben wurden; Änderungen sind erst nach dem Auschecken möglich.

% if (current_user->{backend_id}) { <%= current_user->{backend_name} %> % } % else { IRIS % }
%= form_for '/checkin/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
%= 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
%= text_area 'route', id => 'route', class => 'materialize-textarea'
Eine Station pro Zeile, wahlweise Unterwegshalte oder komplette Route
Format: Name oder Name @ Zeitpunkt (Format siehe oben, ein ggf. ausgelassenes Datum wird ergänzt)
%= text_field 'comment'
%= end