aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/edit.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/resources/edit.html.erb')
-rw-r--r--app/views/resources/edit.html.erb17
1 files changed, 1 insertions, 16 deletions
diff --git a/app/views/resources/edit.html.erb b/app/views/resources/edit.html.erb
index b051bae..80d8206 100644
--- a/app/views/resources/edit.html.erb
+++ b/app/views/resources/edit.html.erb
@@ -1,17 +1,2 @@
-<%= 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 %>
+<%= render partial: 'edit', locals: { resource: @resource } %>
- <%= 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 %>