From a40aa1936bc088c76145600a2b074f8fb20079f5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 23 Aug 2019 12:02:22 +0200 Subject: Allow comments to be edited --- templates/edit_journey.html.ep | 6 ++++++ templates/journey.html.ep | 18 +++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) (limited to 'templates') diff --git a/templates/edit_journey.html.ep b/templates/edit_journey.html.ep index 06338f6..d1c1d47 100644 --- a/templates/edit_journey.html.ep +++ b/templates/edit_journey.html.ep @@ -75,6 +75,12 @@ %= 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]' + + Kommentar + + %= text_field 'comment' + + diff --git a/templates/journey.html.ep b/templates/journey.html.ep index 724d8ca..343c178 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -121,15 +121,7 @@ % } - % if ($journey->{comment}) { - - Kommentar - - <%= $journey->{comment} %> - - - % } - % else { + % if ($journey->{messages} and @{$journey->{messages}}) { Meldungen @@ -140,6 +132,14 @@ % } + % if ($journey->{user_data} and $journey->{user_data}{comment}) { + + Kommentar + + <%= $journey->{user_data}{comment} %> + + + % } Route -- cgit v1.2.3