metamaps--metamaps/views/shared/_forkmap.html.erb

63 lines
2.3 KiB
Text
Raw Normal View History

2018-03-04 02:25:42 +00:00
{#
# @file
# Partial view, renders a form that creates a new map.
2018-03-04 02:25:42 +00:00
#}
2018-03-05 17:33:16 +00:00
<div className="onConsole">
{ form_for Map.new, url: maps_url, remote: true, html: { className: "new_map", id: "fork_map" } do |form|}
2018-03-05 17:33:16 +00:00
<h3 className="forCreateMap">Save To New Map</h3>
2018-03-05 17:33:16 +00:00
<div className="inputGroup">
2014-02-06 17:40:44 +00:00
<label for="map_name">Name: </label>
2018-03-04 02:25:42 +00:00
{ form.text_field :name, :maxlength => 140 }
2018-03-05 17:33:16 +00:00
<div className="clearfloat"></div>
2014-02-06 17:40:44 +00:00
</div>
2018-03-05 17:33:16 +00:00
<div className="inputGroup">
2014-09-09 19:13:53 +00:00
<label for="map_desc">Description: </label>
2018-03-05 17:33:16 +00:00
{ form.text_area :desc, className: "description", :rows => 5, :cols => 43 }
<div className="clearfloat"></div>
2014-02-06 17:40:44 +00:00
</div>
2018-03-05 17:33:16 +00:00
<div className="inputGroup">
2014-09-09 19:13:53 +00:00
<label for="map_permission">Permission*: </label>
2018-03-05 17:33:16 +00:00
<p className="permHelper">*new topics and synapses take on the same permission as the map they are created on</p>
<div className="permIconWrapper">
<div className="permIcon" data-permission="commons">
<div id="newmap_co" className="mapCommonsIcon mapPermIcon selected">
<div className="tip">
2016-04-24 16:15:40 +00:00
Anyone with an account can edit this map. Anyone without an account can only view it.
2014-09-09 19:13:53 +00:00
</div>
</div>
<h4>COMMONS</h4>
2014-02-07 17:55:11 +00:00
</div>
2018-03-05 17:33:16 +00:00
<div className="permIcon" data-permission="public">
<div id="newmap_pu" className="mapPublicIcon mapPermIcon">
<div className="tip">
2016-04-24 16:15:40 +00:00
Only people you allow can edit this map. Anyone can view it.
2014-09-09 19:13:53 +00:00
</div>
</div>
<h4>PUBLIC</h4>
2014-02-07 17:55:11 +00:00
</div>
2018-03-05 17:33:16 +00:00
<div className="permIcon" data-permission="private">
<div id="newmap_pr" className="mapPrivateIcon mapPermIcon">
<div className="tip">
2016-04-24 16:15:40 +00:00
Only people you allow can edit this map. No one else can view it.
2014-09-09 19:13:53 +00:00
</div>
</div>
<h4>PRIVATE</h4>
2014-02-07 17:55:11 +00:00
</div>
2018-03-05 17:33:16 +00:00
<div className="clearfloat"></div>
2014-02-06 17:40:44 +00:00
</div>
2018-03-05 17:33:16 +00:00
<p className="permText">Anyone with an account can edit this map. Anyone without an account can only view it.</p>
<div className="clearfloat"></div>
2014-09-09 19:13:53 +00:00
</div>
2014-02-06 17:40:44 +00:00
2018-03-05 17:33:16 +00:00
<div className="buttonWrapper">
<button className="button cancel">Cancel</button>
<button className="button submitMap">Create!</button>
2014-02-06 17:40:44 +00:00
</div>
2018-03-05 17:33:16 +00:00
<div className="clearfloat"></div>
2018-03-04 02:25:42 +00:00
{ end }
</div>