From a34f1c7fbcb966e5292385e71d926c62b65aa6d5 Mon Sep 17 00:00:00 2001 From: Marco Metz Date: Thu, 15 Sep 2022 15:03:26 +0200 Subject: [PATCH] OpenStreetMap Eingabehilfen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Formular angepasst und Links zu Wikipedia hinzugefügt BBNAV-157 --- .../shared/partials/_open_street_map.html.erb | 51 +++++++++++++++++-- 1 file changed, 47 insertions(+), 4 deletions(-) diff --git a/app/views/shared/partials/_open_street_map.html.erb b/app/views/shared/partials/_open_street_map.html.erb index cf8413e0..e75402d9 100644 --- a/app/views/shared/partials/_open_street_map.html.erb +++ b/app/views/shared/partials/_open_street_map.html.erb @@ -4,6 +4,10 @@
<%= fai.number_field :capacity, class: "form-control" %> +

+ Value: number + https://wiki.openstreetmap.org/wiki/Key:capacity +

@@ -11,6 +15,10 @@
<%= fai.text_field :capacity_charging, class: "form-control" %> +

+ Value: yes|no|number + https://wiki.openstreetmap.org/wiki/Key:capacity:charging +

@@ -18,34 +26,57 @@
<%= fai.text_field :capacity_disabled, class: "form-control" %> +

+ Value: yes|no|number + https://wiki.openstreetmap.org/wiki/Key:capacity:disabled +

- <%= fai.text_field :fee, class: "form-control" %> + <%= fai.select :fee, options_for_select( ["yes", "no"], fai.object.try(:fee)), { include_blank: true }, class: "form-control" %> +

+ Value: yes|no + https://wiki.openstreetmap.org/wiki/Key:fee +

- <%= fai.text_field :lit, class: "form-control" %> + <%= fai.select :lit, options_for_select( ["yes", "no"], fai.object.try(:lit)), { include_blank: true }, class: "form-control" %> +

+ Value: yes|no + https://wiki.openstreetmap.org/wiki/Key:li +

- <%= fai.text_field :parking, class: "form-control" %> + <%= fai.select :parking, options_for_select( + [["Gewöhnlicher ebenerdiger Parkplatz", "surface"], ["Parkbuchten/Parktaschen am Straßenrand","street_side"], ["Parkstreifen auf einer Straße","lane"], ["Layby - Rastplatz","layby"], ["Tiefgarage","underground"], ["Parkhaus mit mehreren Parkebenen","multi-storey"], ["Parken in einer Ebene auf einem Dach","rooftop"], ["Carport","carports"], ["Garage Boxes - Einstöckige Gebäude für einzelne Autos","garage_boxes"], ["Sheds - Private Bauten für Fahrzeuge","sheds"]], + fai.object.try(:parking) + ), { include_blank: true }, class: "form-control" %> +

+ Value: string + https://wiki.openstreetmap.org/wiki/Key:parking +

- <%= fai.text_field :shelter, class: "form-control" %> + <%= fai.select :shelter, options_for_select( ["yes", "no"], fai.object.try(:shelter)), { include_blank: true }, class: "form-control" %> +

+ Value: yes|no + https://wiki.openstreetmap.org/wiki/Key:shelter +

@@ -53,6 +84,10 @@
<%= fai.text_field :surface, class: "form-control" %> +

+ Value: string + https://wiki.openstreetmap.org/wiki/Key:surface +

@@ -60,6 +95,10 @@
<%= fai.text_field :utilization, class: "form-control" %> +

+ Value: string, "häufig bereits morgens überlastet"; "nur selten ausgelastet" + https://wiki.openstreetmap.org/wiki/Key:utilization +

@@ -67,6 +106,10 @@
<%= fai.text_field :website, class: "form-control" %> +

+ Value: string + https://wiki.openstreetmap.org/wiki/Key:website +