summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-08 19:46:45 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-08 19:46:45 +0100
commit315a94affedffda8ab4be62cebf2b62c3f5f0d78 (patch)
treef10f35f59aa35860ec9b67e1ba2754864de82d89 /templates
parent561ff4574bb6078ce4c9f72647a9c3d1a92cac6e (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.ep9
-rw-r--r--templates/journey.html.ep8
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>