16 lines
596 B
Text
16 lines
596 B
Text
<%#
|
|
# @file
|
|
# Form for editing a map
|
|
# TODO: I think this code is no longer in use. Is it?
|
|
# TODO: What URL is this accessible at?
|
|
#%>
|
|
<%= form_for @map, url: map_url(@map) do |form| %>
|
|
<h3>Edit Map</h3>
|
|
<label for="map_name">Name</label>
|
|
<%= form.text_field :name %>
|
|
<label for="map_desc">Description</label>
|
|
<%= form.text_area :desc, class: "description", :rows => 5 %>
|
|
<label for="map_perm">Permission</label>
|
|
<%= form.select :permission, options_for_select(['commons', 'public', 'private'], @map.permission) %>
|
|
<%= form.submit "Update", class: "update" %>
|
|
<% end %>
|