diff options
author | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-03-29 16:48:54 +0100 |
---|---|---|
committer | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-03-29 16:49:22 +0100 |
commit | 32b1ab88cbd74bf2147731cc0c7e6c8db95fc540 (patch) | |
tree | 57900fd451368f2609f6314d166741d98a4de0f6 /app/views/pois/_form.html.erb | |
parent | 90121413900895958a2ed8daaae2ab1e7dde996d (diff) |
added basic scaffold for pois
Diffstat (limited to 'app/views/pois/_form.html.erb')
-rw-r--r-- | app/views/pois/_form.html.erb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app/views/pois/_form.html.erb b/app/views/pois/_form.html.erb new file mode 100644 index 0000000..26db79d --- /dev/null +++ b/app/views/pois/_form.html.erb @@ -0,0 +1,31 @@ +<%= form_for(@poi) do |f| %> + <% if @poi.errors.any? %> + <div id="error_explanation"> + <h2><%= pluralize(@poi.errors.count, "error") %> prohibited this poi from being saved:</h2> + + <ul> + <% @poi.errors.full_messages.each do |msg| %> + <li><%= msg %></li> + <% end %> + </ul> + </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> + <div class="actions"> + <%= f.submit %> + </div> +<% end %> |