20 lines
827 B
Text
20 lines
827 B
Text
<%#
|
|
# @file
|
|
# Partial view, renders a form that creates a new map.
|
|
#%>
|
|
<div class="onConsole">
|
|
<%= form_for Map.new, url: maps_url, remote: true, html: { class: "new_map", id: "new_map" } do |form|%>
|
|
<h3>Create A New 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.hidden_field :permission, :value => "commons" %>
|
|
<p>Topics and synapses you create newly on this map will be set by default to the permissions of your map.</p>
|
|
<%= form.submit "Save", class: "add" %>
|
|
<button class="button" onclick="$('#lightbox_overlay').hide();return false">Cancel</button>
|
|
<div class="clearfloat"></div>
|
|
<% end %>
|
|
</div>
|