Skip to content

Commit

Permalink
OpenStreetMap Eingabehilfen
Browse files Browse the repository at this point in the history
Formular angepasst und Links zu Wikipedia hinzugefügt

BBNAV-157
  • Loading branch information
marcometz committed Sep 15, 2022
1 parent 6408a16 commit a34f1c7
Showing 1 changed file with 47 additions and 4 deletions.
51 changes: 47 additions & 4 deletions app/views/shared/partials/_open_street_map.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,69 +4,112 @@
<div class="form-group">
<label for="capacity">Anzahl Stellplätze</label>
<%= fai.number_field :capacity, class: "form-control" %>
<p class="hint">
Value: number
<a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:capacity">https://wiki.openstreetmap.org/wiki/Key:capacity</a>
</p>
</div>
</div>

<div class="col-lg-6">
<div class="form-group">
<label for="capacity_charging">Anzahl Stellplätze mit Lademöglichkeit</label>
<%= fai.text_field :capacity_charging, class: "form-control" %>
<p class="hint">
Value: yes|no|number
<a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:capacity:charging">https://wiki.openstreetmap.org/wiki/Key:capacity:charging</a>
</p>
</div>
</div>

<div class="col-lg-6">
<div class="form-group">
<label for="capacity_disabled">Anzahl Behindertenparkplätze</label>
<%= fai.text_field :capacity_disabled, class: "form-control" %>
<p class="hint">
Value: yes|no|number
<a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:capacity:disabled">https://wiki.openstreetmap.org/wiki/Key:capacity:disabled</a>
</p>
</div>
</div>

<div class="col-lg-6">
<div class="form-group">
<label for="fee">Gebühren</label>
<%= 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" %>
<p class="hint">
Value: yes|no
<a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:fee">https://wiki.openstreetmap.org/wiki/Key:fee</a>
</p>
</div>
</div>

<div class="col-lg-6">
<div class="form-group">
<label for="lit">Beleuchtung</label>
<%= 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" %>
<p class="hint">
Value: yes|no
<a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:lit">https://wiki.openstreetmap.org/wiki/Key:li</a>
</p>
</div>
</div>

<div class="col-lg-6">
<div class="form-group">
<label for="parking">Parkplatz</label>
<%= 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" %>
<p class="hint">
Value: string
<a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:parking">https://wiki.openstreetmap.org/wiki/Key:parking</a>
</p>
</div>
</div>

<div class="col-lg-6">
<div class="form-group">
<label for="shelter">Überdachung</label>
<%= 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" %>
<p class="hint">
Value: yes|no
<a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:shelter">https://wiki.openstreetmap.org/wiki/Key:shelter</a>
</p>
</div>
</div>

<div class="col-lg-6">
<div class="form-group">
<label for="surface">Oberfläche</label>
<%= fai.text_field :surface, class: "form-control" %>
<p class="hint">
Value: string
<a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:surface">https://wiki.openstreetmap.org/wiki/Key:surface</a>
</p>
</div>
</div>

<div class="col-lg-6">
<div class="form-group">
<label for="utilization">Auslastung</label>
<%= fai.text_field :utilization, class: "form-control" %>
<p class="hint">
Value: string, "häufig bereits morgens überlastet"; "nur selten ausgelastet"
<a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:utilization">https://wiki.openstreetmap.org/wiki/Key:utilization</a>
</p>
</div>
</div>

<div class="col-lg-6">
<div class="form-group">
<label for="website">Website</label>
<%= fai.text_field :website, class: "form-control" %>
<p class="hint">
Value: string
<a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:website">https://wiki.openstreetmap.org/wiki/Key:website</a>
</p>
</div>
</div>
</div>
Expand Down

0 comments on commit a34f1c7

Please sign in to comment.