summaryrefslogtreecommitdiff
path: root/app/views/pois/_form.html.erb
diff options
context:
space:
mode:
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>