aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/access_points
diff options
context:
space:
mode:
authorMichel Etienne2014-08-20 11:04:59 +0200
committerMichel Etienne2014-08-20 11:04:59 +0200
commit59a4755231bc3c13c93d8cd8032e729c97d9c45f (patch)
tree55dccd07d668dfe390bcfda7348fb0471d3b5a52 /app/views/access_points
parent3df9b80b408343045a81b4c1817f998ebd5d1a03 (diff)
downloadchouette-core-59a4755231bc3c13c93d8cd8032e729c97d9c45f.tar.bz2
add zip code and city name to stop_area and access_point , Mantis 26825
Diffstat (limited to 'app/views/access_points')
-rw-r--r--app/views/access_points/_form.html.erb2
-rw-r--r--app/views/access_points/show.html.erb8
2 files changed, 10 insertions, 0 deletions
diff --git a/app/views/access_points/_form.html.erb b/app/views/access_points/_form.html.erb
index 4749943fb..26c80c996 100644
--- a/app/views/access_points/_form.html.erb
+++ b/app/views/access_points/_form.html.erb
@@ -9,6 +9,8 @@
:collection => Chouette::AccessPoint.access_point_types, :include_blank => false, :member_label => Proc.new { |access_point_type| t("access_types.label.#{access_point_type}") } %>
<%= form.input :street_name %>
<%= form.input :country_code %>
+ <%= form.input :zip_code %>
+ <%= form.input :city_name %>
<%= form.input :comment %>
<%= form.input :openning_time, :as => :time_select %>
<%= form.input :closing_time, :as => :time_select %>
diff --git a/app/views/access_points/show.html.erb b/app/views/access_points/show.html.erb
index 132581786..7cd7b4920 100644
--- a/app/views/access_points/show.html.erb
+++ b/app/views/access_points/show.html.erb
@@ -25,6 +25,14 @@
<%= @access_point.country_code %>
</p>
<p>
+ <label><%= @access_point.human_attribute_name("zip_code") %>: </label>
+ <%= @access_point.zip_code %>
+ </p>
+ <p>
+ <label><%= @access_point.human_attribute_name("city_name") %>: </label>
+ <%= @access_point.city_name %>
+ </p>
+ <p>
<label><%= @access_point.human_attribute_name("access_point_type") %>: </label>
<%= t("access_types.label.#{@access_point.access_point_type}") %>
</p>