summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-02-01 16:15:20 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-02-01 16:15:20 +0100
commiteb3f4aed05d31509e0544ff29b382759ba31b9c2 (patch)
treefc863f10184cadba9504092881bfae420e93efd7 /templates
parent5439dbad343d9db39119cc0168b18bc9c58b195c (diff)
allow checkin and checkout station to be edited
Diffstat (limited to 'templates')
-rw-r--r--templates/edit_journey.html.ep24
-rw-r--r--templates/journey.html.ep6
2 files changed, 24 insertions, 6 deletions
diff --git a/templates/edit_journey.html.ep b/templates/edit_journey.html.ep
index 0eb8a99..c9aaa64 100644
--- a/templates/edit_journey.html.ep
+++ b/templates/edit_journey.html.ep
@@ -61,38 +61,50 @@
</td>
</tr>
<tr>
+ <th scope="row">Start:</th>
+ <td class="input-field">
+ %= text_field 'from_name', id => 'from_name', class => 'autocomplete validate', required => undef
+ </td>
+ </tr>
+ <tr>
<th scope="row">Geplante Abfahrt</th>
- <td>
+ <td class="input-field">
%= 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]'
</td>
</tr>
<tr>
<th scope="row">Tatsächliche Abfahrt</th>
- <td>
+ <td class="input-field">
%= text_field 'rt_departure', id => 'real_departure', 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">Ziel:</th>
+ <td class="input-field">
+ %= text_field 'to_name', id => 'to_name', class => 'autocomplete validate', required => undef
+ </td>
+ </tr>
+ <tr>
<th scope="row">Geplante Ankunft</th>
- <td>
+ <td class="input-field">
%= text_field 'sched_arrival', id => 'sched_arrival', 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]'
</td>
</tr>
<tr>
<th scope="row">Tatsächliche Ankunft</th>
- <td>
+ <td class="input-field">
%= 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>
+ <td class="input-field">
%= text_area 'route', id => 'route', class => 'materialize-textarea'
</td>
</tr>
<tr>
<th scope="row">Kommentar</th>
- <td>
+ <td class="input-field">
%= text_field 'comment'
</td>
</tr>
diff --git a/templates/journey.html.ep b/templates/journey.html.ep
index 3a27194..ae8f750 100644
--- a/templates/journey.html.ep
+++ b/templates/journey.html.ep
@@ -25,8 +25,14 @@
% }
von
<b><%= $journey->{from_name} %></b>
+ % if ($journey->{edited} & 0x0004) {
+ ∗
+ % }
nach
<b><%= $journey->{to_name} %></b>
+ % if ($journey->{edited} & 0x0400) {
+ ∗
+ % }
am
<b><%= $journey->{sched_departure}->strftime('%d.%m.%Y') %></b>
</p>