aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorZakaria BOUZIANE2014-07-29 10:40:50 +0200
committerZakaria BOUZIANE2014-07-29 10:40:50 +0200
commit9d1fe609029098d1c2ae40980b133923cd890cf2 (patch)
tree3aea779f5eac9dad76e735acd028321fbaee13e7 /app/views
parent711131fca3dadf9989debd5d5dce2f28d549786c (diff)
downloadchouette-core-9d1fe609029098d1c2ae40980b133923cd890cf2.tar.bz2
Vehicle Journey Slide to a different starting departure time
Diffstat (limited to 'app/views')
-rw-r--r--app/views/vehicle_journeys/_form.html.erb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/vehicle_journeys/_form.html.erb b/app/views/vehicle_journeys/_form.html.erb
index f512754b2..e29d3cc92 100644
--- a/app/views/vehicle_journeys/_form.html.erb
+++ b/app/views/vehicle_journeys/_form.html.erb
@@ -19,6 +19,14 @@
<th class="hour title"><%= t('.arrival') %></th>
<th class="stop title" ><%= t('.stop_title') %></th>
<th class="hour title"><%= t('.departure') %></th>
+ <% unless @vehicle_journey.vehicle_journey_at_stops.empty? ||
+ @vehicle_journey.vehicle_journey_at_stops.any? { |vjas| vjas.departure_time.nil? } %>
+ <th class="date">
+ <%= select_hour(@vehicle_journey.vehicle_journey_at_stops.first.departure_time.hour, :class => "hour") %>
+ <%= select_minute(@vehicle_journey.vehicle_journey_at_stops.first.departure_time.min, :class => "minute") %>
+ </th>
+ <th class="title"> <a class="slide"><%= t('.slide') %></a></th>
+ <% end %>
</tr>
</thead>
<tfoot>
@@ -26,6 +34,8 @@
<td class="title"> <a class="to_departures"><%= t('.to_departures') %></a></td>
<td class="title" ></td>
<td class="title"><a class="to_arrivals"><%= t('.to_arrivals') %></a></td>
+ <td></td>
+ <td></td>
</tr>
</tfoot>
<tbody class="journey_pattern_dependent_list">