Zugfahrt bearbeiten

% if ($error and $error eq 'notfound') {
Fehler

Zugfahrt nicht gefunden.

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

<%= $error %>

% } %= form_for '/journey/edit' => (method => 'POST') => begin %= csrf_field %= hidden_field 'journey_id' => param('journey_id')

Fahrt von <%= $journey->{from_name} %> nach <%= $journey->{to_name} %> am <%= $journey->{sched_departure}->strftime('%d.%m.%Y') %>

Nach einer Änderung können die ursprünglich eingetragenen Daten nicht wiederhergestellt werden.

Zug <%= $journey->{type} %> <%= $journey->{no} %> % if ($journey->{line}) { (Linie <%= $journey->{line} %>) % }
Start: %= text_field 'from_name', id => 'from_name', class => 'autocomplete validate', autocomplete => 'off', required => undef
Geplante Abfahrt %= 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]'
Tatsächliche Abfahrt %= text_field 'rt_departure', id => 'real_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]'
Ziel: %= text_field 'to_name', id => 'to_name', class => 'autocomplete validate', autocomplete => 'off', required => undef
Geplante Ankunft %= 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]'
Tatsächliche Ankunft %= text_field 'rt_arrival', id => 'real_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]'
Route %= text_area 'route', id => 'route', class => 'materialize-textarea'
Kommentar %= text_field 'comment'
Abbrechen
%= end % }