From c0c7b1a589b51b9fe27980ff7b5c80e56a77eb01 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 8 Apr 2019 21:20:04 +0200 Subject: Work-in-progress journey editor. Not ready for deployment. --- templates/edit_journey.html.ep | 19 ++++++++++--------- templates/journey.html.ep | 5 ++++- 2 files changed, 14 insertions(+), 10 deletions(-) (limited to 'templates') diff --git a/templates/edit_journey.html.ep b/templates/edit_journey.html.ep index 8fdc5b6..d36fc65 100644 --- a/templates/edit_journey.html.ep +++ b/templates/edit_journey.html.ep @@ -1,3 +1,4 @@ +

Zugfahrt bearbeiten

% if ($error and $error eq 'notfound') {
@@ -25,6 +26,7 @@ % } %= form_for '/journey/edit' => (method => 'POST') => begin %= csrf_field + %= hidden_field 'journey_id' => param('journey_id')

@@ -35,6 +37,10 @@ am <%= $journey->{sched_departure}->strftime('%d.%m.%Y') %>

+

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

@@ -69,17 +75,14 @@ %= 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]' - - - -
Zug
Route - %= text_area 'route', id => 'route', cols => 40, rows => 20 -
-
+
+
-
-
%= end % } diff --git a/templates/journey.html.ep b/templates/journey.html.ep index 3b84d67..b5c24a7 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -26,6 +26,9 @@ am <%= $journey->{sched_departure}->strftime('%d.%m.%Y') %>

+ % if ($journey->{edited}) { +

Die Ankunfts- und Abfahrtsdaten wurden nachträglich bearbeitet.

+ % } @@ -141,7 +144,7 @@
%= form_for '/journey/edit' => (method => 'POST') => begin %= hidden_field 'journey_id' => param('journey_id') - %= end -- cgit v1.2.3
Zug