2013-01-11 23:49:59 +00:00
|
|
|
<%#
|
|
|
|
# @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?
|
|
|
|
#%>
|
2012-12-21 23:07:13 +00:00
|
|
|
<%= form_for @map, url: map_url(@map) do |form| %>
|
2012-10-26 10:04:52 +00:00
|
|
|
<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>
|
2012-10-27 08:30:56 +00:00
|
|
|
<%= form.select :permission, options_for_select(['commons', 'public', 'private'], @map.permission) %>
|
2012-10-26 10:04:52 +00:00
|
|
|
<%= form.submit "Update", class: "update" %>
|
|
|
|
<% end %>
|