From eb3f4aed05d31509e0544ff29b382759ba31b9c2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 1 Feb 2020 16:15:20 +0100 Subject: allow checkin and checkout station to be edited --- templates/edit_journey.html.ep | 24 ++++++++++++++++++------ templates/journey.html.ep | 6 ++++++ 2 files changed, 24 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/edit_journey.html.ep b/templates/edit_journey.html.ep index 0eb8a99..c9aaa64 100644 --- a/templates/edit_journey.html.ep +++ b/templates/edit_journey.html.ep @@ -60,39 +60,51 @@ + + Start: + + %= text_field 'from_name', id => 'from_name', class => 'autocomplete validate', 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', 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' diff --git a/templates/journey.html.ep b/templates/journey.html.ep index 3a27194..ae8f750 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -25,8 +25,14 @@ % } von <%= $journey->{from_name} %> + % if ($journey->{edited} & 0x0004) { + ∗ + % } nach <%= $journey->{to_name} %> + % if ($journey->{edited} & 0x0400) { + ∗ + % } am <%= $journey->{sched_departure}->strftime('%d.%m.%Y') %>

-- cgit v1.2.3