summaryrefslogtreecommitdiff
path: root/app/views
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
parent218fd754141fa7b38f749bbc186d79cbcce8c2af (diff)
kinda works…
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/application.html.erb1
-rw-r--r--app/views/pois/_form.html.erb16
-rw-r--r--app/views/pois/new.html.erb4
3 files changed, 7 insertions, 14 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index c941b11..c418005 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -5,6 +5,7 @@
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
<%= csrf_meta_tags %>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
</head>
<body>
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 %>