2013-01-11 23:49:59 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# Form to create a new map.
|
2013-01-18 22:08:06 +00:00
|
|
|
# Accessible from /maps/new. Still in use.
|
2013-01-11 23:49:59 +00:00
|
|
|
#%>
|
2012-10-26 10:04:52 +00:00
|
|
|
<div class="nothidden">
|
2012-12-21 23:07:13 +00:00
|
|
|
<%= form_for @map || Map.new, url: maps_url do |form|%>
|
2012-10-26 10:04:52 +00:00
|
|
|
<h3>Add 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_permission">Permission</label>
|
|
|
|
<%= form.select(:permission, options_for_select(['commons', 'public', 'private'])) %>
|
2013-01-18 22:08:06 +00:00
|
|
|
<p>Topics and synapses you create newly on this map will be set by default to the permissions of your map.</p>
|
2012-10-26 10:04:52 +00:00
|
|
|
<%= form.submit "Add Map", class: "add" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|