summaryrefslogtreecommitdiff
path: root/app/views/pois/_form.html.erb
diff options
context:
space:
mode:
authorLars Henrik Mai <lars.mai@kontinui.de>2014-03-29 19:34:42 +0100
committerLars Henrik Mai <lars.mai@kontinui.de>2014-03-29 19:34:42 +0100
commit0a2e76526b4fdb0edfcaa3697f4eea9e9c7c8eea (patch)
tree6afe733c405c8cb13f511da00c7a9cd31fa62b95 /app/views/pois/_form.html.erb
parent218fd754141fa7b38f749bbc186d79cbcce8c2af (diff)
kinda works…
Diffstat (limited to 'app/views/pois/_form.html.erb')
-rw-r--r--app/views/pois/_form.html.erb16
1 files changed, 6 insertions, 10 deletions
diff --git a/app/views/pois/_form.html.erb b/app/views/pois/_form.html.erb
index 26db79d..e9006c9 100644
--- a/app/views/pois/_form.html.erb
+++ b/app/views/pois/_form.html.erb
@@ -1,3 +1,5 @@
+<div id="map"></div>
+
<%= form_for(@poi) do |f| %>
<% if @poi.errors.any? %>
<div id="error_explanation">
@@ -11,20 +13,14 @@
</div>
<% end %>
- <div id="map"></div>
-
<div class="field">
<%= f.label :message %><br>
<%= f.text_area :message %>
</div>
- <div class="field">
- <%= f.label :lat %><br>
- <%= f.text_field :lat %>
- </div>
- <div class="field">
- <%= f.label :lon %><br>
- <%= f.text_field :lon %>
- </div>
+
+ <%= f.hidden_field :lat %>
+ <%= f.hidden_field :lon %>
+
<div class="actions">
<%= f.submit %>
</div>