From 32b1ab88cbd74bf2147731cc0c7e6c8db95fc540 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Sat, 29 Mar 2014 16:48:54 +0100 Subject: added basic scaffold for pois --- app/views/pois/_form.html.erb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 app/views/pois/_form.html.erb (limited to 'app/views/pois/_form.html.erb') 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? %> +
+

<%= pluralize(@poi.errors.count, "error") %> prohibited this poi from being saved:

+ + +
+ <% end %> + +
+ +
+ <%= f.label :message %>
+ <%= f.text_area :message %> +
+
+ <%= f.label :lat %>
+ <%= f.text_field :lat %> +
+
+ <%= f.label :lon %>
+ <%= f.text_field :lon %> +
+
+ <%= f.submit %> +
+<% end %> -- cgit v1.2.1