2013-01-11 18:49:59 -05:00
<%#
# @file
# Form for editing a map
2013-01-18 17:08:06 -05:00
# Located at addresses /maps/:id/edit. In use.
2013-01-11 18:49:59 -05:00
#%>
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-23 13:43:01 -05:00
<% if @map.user == user %>
<label for="map_perm">Permission</label>
<%= form.select :permission, options_for_select(['commons', 'public', 'private'], @map.permission) %>
2013-01-23 22:05:24 -05:00
<p>Topics and synapses you create newly on this map will be set by default to the permissions of your map.<br>Permissions of already created topics will not be changed to your new map permission.</p>
2013-01-23 13:43:01 -05:00
<% end %>
2012-10-26 06:04:52 -04:00
<%= form.submit "Update", class: "update" %>
<% end %>