aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/edit.html.erb
blob: b051baed9c370bc3572e64727bb5a7b1275d570c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 "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 %>