diff options
| author | Luc Donnet | 2014-08-18 18:07:09 +0200 |
|---|---|---|
| committer | Luc Donnet | 2014-08-18 18:07:09 +0200 |
| commit | 6bc916c070f8c11b979ff6a7a1e1d6721475b47e (patch) | |
| tree | 79e43f073252d9b817c1f3599aa69e2a66b9eb16 /app/views | |
| parent | e9b10212bb8e8fbd8e88b7e227c965b8d1404cfd (diff) | |
| download | chouette-core-6bc916c070f8c11b979ff6a7a1e1d6721475b47e.tar.bz2 | |
Add css for table stripped for vehicle journeys edit page
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/vehicle_journeys/_form.html.erb | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/app/views/vehicle_journeys/_form.html.erb b/app/views/vehicle_journeys/_form.html.erb index 934e76066..e785c70dc 100644 --- a/app/views/vehicle_journeys/_form.html.erb +++ b/app/views/vehicle_journeys/_form.html.erb @@ -11,26 +11,29 @@ <%= form.input :facility %> <%= form.input :vehicle_type_identifier%> <%= form.input :objectid, :required => !@vehicle_journey.new_record? %> - - <%= form.inputs :class => "stop_times", :name => @vehicle_journey.human_attribute_name(:vehicle_journey_at_stop_ids) do %> - <table border="0" class="vehicle_journey_at_stops"> + <%= form.input :time_table_tokens, :label => t('.time_tables'), :as => :text, :input_html => { :"data-pre" => ( @vehicle_journey.time_tables.map { |time_table| { :id => time_table.id, :name => time_table_description(time_table) } } ).to_json } %> + <li class="input"> + <%= form.label @vehicle_journey.human_attribute_name(:vehicle_journey_at_stop_ids), :class => "label" %> + </li> + <div class="vehicle_journey_at_stops"> + <table class="table table-hover table-striped"> <thead> <tr> <th class="hour title"><%= t('.arrival') %></th> <th class="stop title" ><%= t('.stop_title') %></th> <th class="hour title"><%= t('.departure') %></th> </tr> - <% unless @vehicle_journey.vehicle_journey_at_stops.empty? || - @vehicle_journey.vehicle_journey_at_stops.any? { |vjas| vjas.departure_time.nil? } %> - <tr> - <td class="title"> <a class="slide arrival"><%= t('.slide_arrival') %></a></td> - <td 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") %> - </td> - <td class="title"> <a class="slide departure"><%= t('.slide_departure') %></a></td> - </tr> - <% end %> + <% unless @vehicle_journey.vehicle_journey_at_stops.empty? || + @vehicle_journey.vehicle_journey_at_stops.any? { |vjas| vjas.departure_time.nil? } %> + <tr> + <td class="title"> <a class="slide arrival"><%= t('.slide_arrival') %></a></td> + <td 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") %> + </td> + <td class="title"> <a class="slide departure"><%= t('.slide_departure') %></a></td> + </tr> + <% end %> </thead> <tfoot> <tr> @@ -44,9 +47,7 @@ :collection => @vehicle_journey.vehicle_journey_at_stops, :as => :vehicle_journey_at_stop %> </tbody> </table> - <% end %> - <%= form.input :time_table_tokens, :label => t('.time_tables'), :as => :text, :input_html => { :"data-pre" => ( @vehicle_journey.time_tables.map { |time_table| { :id => time_table.id, :name => time_table_description(time_table) } } ).to_json } %> - + </div> <% end %> <%= form.actions do %> |
