diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-12-08 19:46:45 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-12-08 19:46:45 +0100 |
commit | 315a94affedffda8ab4be62cebf2b62c3f5f0d78 (patch) | |
tree | f10f35f59aa35860ec9b67e1ba2754864de82d89 /templates | |
parent | 561ff4574bb6078ce4c9f72647a9c3d1a92cac6e (diff) |
allow a journey's cancellation status to be edited1.11.1
Closes #27
Diffstat (limited to 'templates')
-rw-r--r-- | templates/edit_journey.html.ep | 9 | ||||
-rw-r--r-- | templates/journey.html.ep | 8 |
2 files changed, 15 insertions, 2 deletions
diff --git a/templates/edit_journey.html.ep b/templates/edit_journey.html.ep index a77bbd4..ff36381 100644 --- a/templates/edit_journey.html.ep +++ b/templates/edit_journey.html.ep @@ -52,6 +52,15 @@ </td> </tr> <tr> + <th scope="row"></th> + <td> + <label> + %= check_box cancelled => 1 + <span>Fahrt ist ausgefallen</span> + </label> + </td> + </tr> + <tr> <th scope="row">Geplante Abfahrt</th> <td> %= 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]' diff --git a/templates/journey.html.ep b/templates/journey.html.ep index 7be4f78..712bba6 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -15,11 +15,15 @@ <div class="col s12"> <p> % if ($journey->{cancelled}) { - Ausgefallene Fahrt von + Ausgefallene Fahrt % } % else { - Fahrt von + Fahrt % } + % if ($journey->{edited} & 0x0020) { + ∗ + % } + von <b><%= $journey->{from_name} %></b> nach <b><%= $journey->{to_name} %></b> |