aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/edit.html.erb
diff options
context:
space:
mode:
authorNemael <100dragons@gmail.com>2020-10-08 15:07:17 +0200
committerNemael <100dragons@gmail.com>2020-10-08 15:07:17 +0200
commit9e884fa034a5aaa9035485644d04b740107725ee (patch)
tree6fe5f40cda71d0bd774d16e26fbe4ec567b75288 /app/views/resources/edit.html.erb
parentcf6b277ca3f22e575b059a8d8029163ddcee86db (diff)
downloadincommon-map-9e884fa034a5aaa9035485644d04b740107725ee.tar.gz
Added leaflet gem and changed a bit the Edit Ressource page to be able to edit categories
Diffstat (limited to 'app/views/resources/edit.html.erb')
-rw-r--r--app/views/resources/edit.html.erb10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/resources/edit.html.erb b/app/views/resources/edit.html.erb
index fa61a0a..6d9f1c2 100644
--- a/app/views/resources/edit.html.erb
+++ b/app/views/resources/edit.html.erb
@@ -1,15 +1,17 @@
<%= form_with model: @resource, local: true do |f| %>
+ <%= tag.legend "" %>
<%= f.label :name %>
<%= f.text_field :name, value: @resource.name %>
+
+ <%= tag.legend "" %>
+ <%= f.label :categories %>
+ <%= f.text_field :categories, value: @resource.categories %>
-
- <%= tag.legend "Geographic Position" %>
+ <%= tag.legend "Coordonées géographiques" %>
<%= f.label :longitude %>
<%= f.text_field :longitude, value: @resource.lon %>
<%= f.label :latitude %>
<%= f.text_field :latitude, value: @resource.lat %>
-
-
<%= f.submit 'Save' %>
<% end %>