diff options
| author | Robert | 2017-04-21 17:37:14 +0200 |
|---|---|---|
| committer | Robert | 2017-04-24 09:03:11 +0200 |
| commit | 365e927cc18b46af00e3c2f0754aabe3b77e890f (patch) | |
| tree | dedaea93d79c077538fab8ffb10e9e39d35ce56f /app/views/access_points | |
| parent | b5d3dc6e1f0120a999af4be3693f3fdc95a727a4 (diff) | |
| download | chouette-core-365e927cc18b46af00e3c2f0754aabe3b77e890f.tar.bz2 | |
all deprecation wrnings removed from specs, some minor view refactors (:xxx => ... -> xxx: ...); Refs: #??? [amend me]
Diffstat (limited to 'app/views/access_points')
| -rw-r--r-- | app/views/access_points/_form.html.slim | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/access_points/_form.html.slim b/app/views/access_points/_form.html.slim index 1874644d5..5ba7a6863 100644 --- a/app/views/access_points/_form.html.slim +++ b/app/views/access_points/_form.html.slim @@ -7,9 +7,8 @@ = form.input :name = form.input :access_point_type, as: :select, :input_html => {:disabled => !@access_point.new_record? }, - :collection => Chouette::AccessPoint.access_point_types, - include_blank: false, - :member_label => Proc.new { |access_point_type| t("access_types.label.#{access_point_type}") } + :collection => access_point_type_label_pairs, + include_blank: false = form.input :street_name = form.input :country_code = form.input :zip_code @@ -41,4 +40,4 @@ = form.actions do = form.action :submit, as: :button - = form.action :cancel, as: :link
\ No newline at end of file + = form.action :cancel, as: :link |
