summaryrefslogtreecommitdiff
path: root/app/views/pois
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/pois')
-rw-r--r--app/views/pois/_form.html.erb16
-rw-r--r--app/views/pois/new.html.erb4
2 files changed, 6 insertions, 14 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>
diff --git a/app/views/pois/new.html.erb b/app/views/pois/new.html.erb
index ea4ebe0..2d34363 100644
--- a/app/views/pois/new.html.erb
+++ b/app/views/pois/new.html.erb
@@ -1,5 +1 @@
-<h1>New poi</h1>
-
<%= render 'form' %>
-
-<%= link_to 'Back', pois_path %>