diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-08 21:20:04 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-08 21:20:04 +0200 |
commit | c0c7b1a589b51b9fe27980ff7b5c80e56a77eb01 (patch) | |
tree | 7aec58d2d32418578e0e785f19f787629e5a27c1 /templates/edit_journey.html.ep | |
parent | beb17acb8440bb44f1070c2fb3b2e6cf7521f800 (diff) |
Work-in-progress journey editor. Not ready for deployment.
Diffstat (limited to 'templates/edit_journey.html.ep')
-rw-r--r-- | templates/edit_journey.html.ep | 19 |
1 files changed, 10 insertions, 9 deletions
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 @@ +<h1>Zugfahrt bearbeiten</h1> % if ($error and $error eq 'notfound') { <div class="row"> <div class="col s12"> @@ -25,6 +26,7 @@ % } %= form_for '/journey/edit' => (method => 'POST') => begin %= csrf_field + %= hidden_field 'journey_id' => param('journey_id') <div class="row"> <div class="col s12"> <p> @@ -35,6 +37,10 @@ am <b><%= $journey->{sched_departure}->strftime('%d.%m.%Y') %></b> </p> + <p> + Nach einer Änderung können die ursprünglich eingetragenen + Zeiten nicht mehr wiederhergestellt werden. + </p> <table class="striped"> <tr> <th scope="row">Zug</th> @@ -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]' </td> </tr> - <tr> - <th scope="row">Route</th> - <td> - %= text_area 'route', id => 'route', cols => 40, rows => 20 - </td> - </tr> </table> </div> </div> <div class="row"> - <div class="col s3 m3 l3"> + <div class="col s6 m6 l6 center-align"> + <button class="btn waves-effect waves-light" type="submit" name="action" value="cancel"> + Abbrechen + </button> </div> <div class="col s6 m6 l6 center-align"> <button class="btn waves-effect waves-light" type="submit" name="action" value="save"> @@ -87,8 +90,6 @@ <i class="material-icons right">send</i> </button> </div> - <div class="col s3 m3 l3"> - </div> </div> %= end % } |