aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/networks/show.html.erb
blob: 478d2f8aa04a8a54537dce01363d6a94441fb773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<%= title_tag t('networks.show.title'), @line.name %>

<div class="line_show">

  <div class="summary">
    <p>
      <label><%= Chouette::Line.human_attribute_name(:network) %>: </label>
      <%= @line.network.name if @line.network.present? %>
    </p>
    <p>
      <label><%= Chouette::Line.human_attribute_name("company") %>: </label>
      <%= @line.company.name if @line.company.present? %>
    </p>
    <p>
      <label><%= Chouette::Line.human_attribute_name("registrationnumber") %>: </label>
      <%= @line.registrationnumber %>
    </p>
    <p>
      <label><%= Chouette::Line.human_attribute_name("name") %>: </label>
      <%= @line.name %>
    </p>
    <p>
      <label><%= Chouette::Line.human_attribute_name("publishedname") %>: </label>
      <%= @line.publishedname %>
    </p>
    <p>
      <label><%= Chouette::Line.human_attribute_name("number") %>: </label>
      <%= @line.number %>
    </p>
    <p>
      <label><%= Chouette::Line.human_attribute_name("transportmodename") %>: </label>
      <%= @line.transportmodename %>
    </p>
    <p>
      <label><%= Chouette::Line.human_attribute_name("comment") %>: </label>
      <%= @line.comment %>
    </p>
  </div>
</div>

<% content_for :sidebar do %>
<ul class="actions">
  <li><%= link_to t('lines.actions.edit'), edit_referential_line_path(@referential, @line), :class => "edit" %></li>
  <li><%= link_to  t('lines.actions.destroy'), referential_line_path(@referential, @line), :method => :delete, :confirm =>  t('lines.actions.destroy_confirm'), :class => "remove" %></li>
  <br>
</ul>
<% end %>