summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
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>