aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/routes/_route.html.erb
blob: 4ec720e5dd92f8abc681c064a7c9fbea00a2f600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<%= div_for(route) do %>
    <%= link_to image_tag("icons/#{route.wayback}.png"), referential_line_route_path( @referential, @line, route) %>
    <div>
      <%= link_to route.name, referential_line_route_path( @referential, @line, route) %>
    </div> 
  <div class="info">
    <% if route.number.blank? %>
      <%= route.human_attribute_name('number') %> <%= route.number %> -
    <% end %>
    <% if route.direction.blank? %>
      <%= route.human_attribute_name('direction') %> <%= route.direction %> - 
    <% end %>
    <%= route.human_attribute_name('wayback_code') %> <%= (route.wayback=="A") ? t('route.wayback.positive') : t('wayback.negative') %>
    <div class="actions">  
      <%= link_to t("routes.actions.edit"), edit_referential_line_route_path(@referential, @line, route), :class => "edit" %> |
      <%= link_to t("vehicle_journeys.actions.index"), referential_line_route_vehicle_journeys_path(@referential, @line, route), :class => "link" %>
    </div>
  </div>
<% end %>