2012-12-21 18:07:13 -05:00
|
|
|
<%= form_for @map, url: map_url(@map) do |form| %>
|
2012-10-26 06:04:52 -04: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 %>
|
2013-01-01 17:45:35 -05:00
|
|
|
<label for="outtopics">Remove Topics From Map</label>
|
|
|
|
<%= select_tag "outtopics", options_from_collection_for_select(@outtopics, "id", "name"), { :multiple => true } %>
|
2012-10-26 06:04:52 -04:00
|
|
|
<label for="map_perm">Permission</label>
|
2012-10-27 04:30:56 -04:00
|
|
|
<%= form.select :permission, options_for_select(['commons', 'public', 'private'], @map.permission) %>
|
2012-10-26 06:04:52 -04:00
|
|
|
<%= form.submit "Update", class: "update" %>
|
|
|
|
<% end %>
|