aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/access_points
diff options
context:
space:
mode:
authorMichel Etienne2013-06-28 15:41:57 +0200
committerMichel Etienne2013-06-28 15:41:57 +0200
commit3529f9d5f2851b65fcf94b5a4ec3b722b9f6c64c (patch)
treeeab7c9adfda90b4e06ddd06716e98da65bd4b3aa /app/views/access_points
parente8bf323e77a548e3ea7e9ab8e1e13e90764046c4 (diff)
downloadchouette-core-3529f9d5f2851b65fcf94b5a4ec3b722b9f6c64c.tar.bz2
remove projection attributes from stop areas and access points in database
Diffstat (limited to 'app/views/access_points')
-rw-r--r--app/views/access_points/_form.html.erb4
-rw-r--r--app/views/access_points/show.html.erb14
2 files changed, 9 insertions, 9 deletions
diff --git a/app/views/access_points/_form.html.erb b/app/views/access_points/_form.html.erb
index cd728f0d6..8e546a878 100644
--- a/app/views/access_points/_form.html.erb
+++ b/app/views/access_points/_form.html.erb
@@ -26,8 +26,8 @@
<%= form.inputs :name => t('access_points.show.geographic_data') do %>
<% if ! @referential.projection_type_label.empty? %>
<%= form.inputs :name => @referential.projection_type_label do %>
- <%= form.input :x %>
- <%= form.input :y %>
+ <%= form.input :projection_x %>
+ <%= form.input :projection_y %>
<% end %>
<% end %>
<%= form.inputs :name => "WGS84" do %>
diff --git a/app/views/access_points/show.html.erb b/app/views/access_points/show.html.erb
index 6361e2115..7f34ed0e0 100644
--- a/app/views/access_points/show.html.erb
+++ b/app/views/access_points/show.html.erb
@@ -56,18 +56,18 @@
<% if @access_point.projection_type == nil && @access_point.long_lat_type == nil %>
<span class='geo_data'><%= t('access_points.show.no_geographic_data') %></span>
<% else %>
- <% if !@access_point.projection_type.nil? %>
+ <% if !@access_point.projection.nil? %>
<p>
- <span class='geo_data'><%= @access_point.human_attribute_name("projection_type") %>: </span>
- <%= @access_point.projection_type %>
+ <span class='geo_data'><%= @access_point.human_attribute_name("projection") %>: </span>
+ <%= @access_point.projection %>
</p>
<p>
- <span class='geo_data'><%= @access_point.human_attribute_name("x") %>: </span>
- <%= @access_point.x %>
+ <span class='geo_data'><%= @access_point.human_attribute_name("projection_x") %>: </span>
+ <%= @access_point.projection_x %>
</p>
<p>
- <span class='geo_data'><%= @access_point.human_attribute_name("y") %>: </span>
- <%= @access_point.y %>
+ <span class='geo_data'><%= @access_point.human_attribute_name("projection_y") %>: </span>
+ <%= @access_point.projection_y %>
</p>
<% end %>
<% if !@access_point.long_lat_type.nil? %>