aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Etienne2014-08-21 16:33:57 +0200
committerMichel Etienne2014-08-21 16:33:57 +0200
commitbeed6b8df8d86c86b69fcca2b602bf40e36dcb75 (patch)
treed8d93f191c65952a2cc33e23b12b3702f828240f
parent64ac4e2bfe88de0e3c54812868145f4c36b43ccf (diff)
downloadchouette-core-beed6b8df8d86c86b69fcca2b602bf40e36dcb75.tar.bz2
maintain object names on show
-rw-r--r--app/views/access_links/show.html.erb4
-rw-r--r--app/views/companies/show.html.erb4
-rw-r--r--app/views/connection_links/show.html.erb4
-rw-r--r--app/views/group_of_lines/show.html.erb4
-rw-r--r--app/views/lines/show.html.erb4
-rw-r--r--app/views/networks/show.html.erb4
-rw-r--r--app/views/time_tables/_show_time_table.html.erb4
-rw-r--r--app/views/vehicle_journeys/show.html.erb4
8 files changed, 32 insertions, 0 deletions
diff --git a/app/views/access_links/show.html.erb b/app/views/access_links/show.html.erb
index f7b870fd8..79294bb38 100644
--- a/app/views/access_links/show.html.erb
+++ b/app/views/access_links/show.html.erb
@@ -13,6 +13,10 @@
<%= link_to @access_link.stop_area.name, [@referential, @access_link.stop_area] %>
</p>
<p>
+ <label><%= @access_link.human_attribute_name(:name) %>: </label>
+ <%= @access_link.name %>
+ </p>
+ <p>
<label><%= @access_link.human_attribute_name("access_link_type") %>: </label>
<%= t("connection_link_types.label.#{@access_link.access_link_type}") %>
</p>
diff --git a/app/views/companies/show.html.erb b/app/views/companies/show.html.erb
index 0c8585a6c..0ac132511 100644
--- a/app/views/companies/show.html.erb
+++ b/app/views/companies/show.html.erb
@@ -4,6 +4,10 @@
<div class="summary">
<p>
+ <label><%= @company.human_attribute_name(:name) %>: </label>
+ <%= @company.name %>
+ </p>
+ <p>
<label><%= Chouette::Company.human_attribute_name("short_name") %>: </label>
<%= @company.short_name %>
</p>
diff --git a/app/views/connection_links/show.html.erb b/app/views/connection_links/show.html.erb
index f11c05152..70547bda1 100644
--- a/app/views/connection_links/show.html.erb
+++ b/app/views/connection_links/show.html.erb
@@ -21,6 +21,10 @@
<% end %>
</p>
<p>
+ <label><%= @connection_link.human_attribute_name(:name) %>: </label>
+ <%= @connection_link.name %>
+ </p>
+ <p>
<label><%= @connection_link.human_attribute_name("connection_link_type") %>: </label>
<%= t("connection_link_types.label.#{@connection_link.connection_link_type}") %>
</p>
diff --git a/app/views/group_of_lines/show.html.erb b/app/views/group_of_lines/show.html.erb
index 7ce5ddc46..e5923d539 100644
--- a/app/views/group_of_lines/show.html.erb
+++ b/app/views/group_of_lines/show.html.erb
@@ -4,6 +4,10 @@
<%= @map.to_html %>
<div class="summary">
<p>
+ <label><%= @group_of_line.human_attribute_name(:name) %>: </label>
+ <%= @group_of_line.name %>
+ </p>
+ <p>
<label><%= @group_of_line.human_attribute_name("comment") %>: </label>
<%= @group_of_line.comment %>
</p>
diff --git a/app/views/lines/show.html.erb b/app/views/lines/show.html.erb
index cec5dc2f0..d1a13aacf 100644
--- a/app/views/lines/show.html.erb
+++ b/app/views/lines/show.html.erb
@@ -21,6 +21,10 @@
<% end %>
</p>
<p>
+ <label><%= @line.human_attribute_name(:name) %>: </label>
+ <%= @line.name %>
+ </p>
+ <p>
<label><%= @line.human_attribute_name("published_name") %>: </label>
<%= @line.published_name %>
</p>
diff --git a/app/views/networks/show.html.erb b/app/views/networks/show.html.erb
index e7b103dda..1999c9869 100644
--- a/app/views/networks/show.html.erb
+++ b/app/views/networks/show.html.erb
@@ -4,6 +4,10 @@
<%= @map.to_html %>
<div class="summary">
<p>
+ <label><%= @network.human_attribute_name(:name) %>: </label>
+ <%= @network.name %>
+ </p>
+ <p>
<label><%= Chouette::Network.human_attribute_name("registration_number") %>: </label>
<%= @network.registration_number %>
</p>
diff --git a/app/views/time_tables/_show_time_table.html.erb b/app/views/time_tables/_show_time_table.html.erb
index 71fe973c9..5095ac918 100644
--- a/app/views/time_tables/_show_time_table.html.erb
+++ b/app/views/time_tables/_show_time_table.html.erb
@@ -13,6 +13,10 @@
</div>
<div class="summary">
<p>
+ <label><%= @time_table.human_attribute_name("comment") %>: </label>
+ <%= @time_table.comment %>
+ </p>
+ <p>
<label><%= @time_table.human_attribute_name("version") %>: </label>
<%= @time_table.version %>
</p>
diff --git a/app/views/vehicle_journeys/show.html.erb b/app/views/vehicle_journeys/show.html.erb
index 45f4fcdb1..92cce447d 100644
--- a/app/views/vehicle_journeys/show.html.erb
+++ b/app/views/vehicle_journeys/show.html.erb
@@ -15,6 +15,10 @@
<%= link_to journey_name(@vehicle_journey.journey_pattern), [@referential, @line, @route, @vehicle_journey.journey_pattern] %>
</p>
<p>
+ <label><%= @vehicle_journey.human_attribute_name("number") %>: </label>
+ <%= @vehicle_journey.number %>
+ </p>
+ <p>
<label><%= @vehicle_journey.human_attribute_name("published_journey_name") %>: </label>
<%= @vehicle_journey.published_journey_name %>
</p>