2014-01-31 00:32:15 +00:00
|
|
|
<%#
|
|
|
|
# @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: "fork_map" } do |form|%>
|
|
|
|
|
|
|
|
<% if controller_name == "maps" %>
|
2014-02-06 17:40:44 +00:00
|
|
|
<h3 class="forCreateMap">Save To New Map</h3>
|
2014-01-31 00:32:15 +00:00
|
|
|
<% elsif controller_name == "topics" %>
|
2014-02-06 17:40:44 +00:00
|
|
|
<h3 class="forCreateMap">Save As New Map</h3>
|
2014-01-31 00:32:15 +00:00
|
|
|
<% end %>
|
|
|
|
|
2014-02-06 17:40:44 +00:00
|
|
|
<div class="inputGroup">
|
|
|
|
<label for="map_name">Name: </label>
|
|
|
|
<%= form.text_field :name %>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="inputGroup">
|
|
|
|
<label for="map_desc">Description: </label>
|
|
|
|
<%= form.text_area :desc, class: "description", :rows => 5, :cols => 43 %>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="inputGroup">
|
|
|
|
<label for="map_permission">Permission: </label>
|
|
|
|
|
2014-02-07 17:55:11 +00:00
|
|
|
<div class="permIcon" data-permission="commons">
|
|
|
|
<div class="mapCommonsIcon mapPermIcon selected hoverForTip">
|
|
|
|
<div class="tip">
|
|
|
|
Collaborate with other mappers on editing this map. Those without accounts can view this map.
|
|
|
|
</div>
|
2014-02-06 17:40:44 +00:00
|
|
|
</div>
|
2014-02-07 17:55:11 +00:00
|
|
|
<h4>COMMONS</h4>
|
2014-02-06 17:40:44 +00:00
|
|
|
</div>
|
2014-02-07 17:55:11 +00:00
|
|
|
<div class="permIcon" data-permission="public">
|
|
|
|
<div class="mapPublicIcon mapPermIcon hoverForTip">
|
|
|
|
<div class="tip">
|
|
|
|
Anyone, with or without an account, can view this map but not edit anything.
|
|
|
|
</div>
|
2014-02-06 17:40:44 +00:00
|
|
|
</div>
|
2014-02-07 17:55:11 +00:00
|
|
|
<h4>PUBLIC</h4>
|
2014-02-06 17:40:44 +00:00
|
|
|
</div>
|
2014-02-07 17:55:11 +00:00
|
|
|
<div class="permIcon" data-permission="private">
|
|
|
|
<div class="mapPrivateIcon mapPermIcon hoverForTip">
|
|
|
|
<div class="tip">
|
|
|
|
Only you can view or edit this map.
|
|
|
|
</div>
|
2014-02-06 17:40:44 +00:00
|
|
|
</div>
|
2014-02-07 17:55:11 +00:00
|
|
|
<h4>PRIVATE</h4>
|
2014-02-06 17:40:44 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
|
2014-02-07 17:55:11 +00:00
|
|
|
<p class="permText">*new topics and synapses take on the same permission as the map they are created on</p>
|
2014-02-06 17:40:44 +00:00
|
|
|
|
|
|
|
<div class="buttonWrapper">
|
2014-07-30 03:18:43 +00:00
|
|
|
<button class="button cancel">Cancel</button>
|
|
|
|
<button class="button submitMap">Create!</button>
|
2014-02-06 17:40:44 +00:00
|
|
|
</div>
|
2014-01-31 00:32:15 +00:00
|
|
|
<div class="clearfloat"></div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|