<%# # @file # Partial view, renders a form that creates a new map. #%>
<%= form_for Map.new, url: maps_url, remote: true, html: { class: "new_map", id: "fork_map" } do |form|%> <% if controller_name == "maps" %>

Save To New Map

<% elsif controller_name == "topics" %>

Save As New Map

<% end %> <%= form.text_field :name %> <%= form.text_area :desc, class: "description", :rows => 5 %> <%= form.hidden_field :permission, :value => "commons" %>

Topics and synapses you create newly on this map will be set by default to the permissions of your map.

<%= form.hidden_field :topicsToMap, :value => 0 %> <%= form.hidden_field :synapsesToMap, :value => 0 %> <%= form.submit "Save", class: "add" %>
<% end %>