2018-03-04 02:25:42 +00:00
|
|
|
{ @metacodes = user_metacodes() }
|
2016-09-24 04:27:34 +00:00
|
|
|
|
2018-03-04 02:25:42 +00:00
|
|
|
{ form_for Topic.new, url: topics_url, remote: true do |form| }
|
2018-03-05 17:33:16 +00:00
|
|
|
<div className="openMetacodeSwitcher openLightbox" data-open="switchMetacodes">
|
|
|
|
<div className="tooltipsAbove">Switch Metacodes</div>
|
2016-09-20 00:30:34 +00:00
|
|
|
</div>
|
2016-09-24 04:27:34 +00:00
|
|
|
|
2018-03-05 17:33:16 +00:00
|
|
|
<div className="pinCarousel">
|
|
|
|
<div className="tooltipsAbove helpPin">Pin Open</div>
|
|
|
|
<div className="tooltipsAbove helpUnpin">Unpin</div>
|
2016-09-20 00:30:34 +00:00
|
|
|
</div>
|
2016-09-24 04:27:34 +00:00
|
|
|
|
2013-01-26 01:49:40 +00:00
|
|
|
<div id="metacodeImg">
|
2018-03-04 02:25:42 +00:00
|
|
|
{ @metacodes.each do |metacode| }
|
2018-03-05 17:33:16 +00:00
|
|
|
<img className="cloudcarousel" width="40" height="40" src="{ asset_path metacode.icon }" alt="{ metacode.name }" title="{ metacode.name }" data-id="{ metacode.id }" />
|
2018-03-04 02:25:42 +00:00
|
|
|
{ end }
|
2017-02-05 19:30:23 +00:00
|
|
|
</div>
|
2016-09-24 04:27:34 +00:00
|
|
|
|
2018-03-04 02:25:42 +00:00
|
|
|
{ form.text_field :name, :maxlength => 140, :placeholder => "title..." }
|
2016-09-24 04:27:34 +00:00
|
|
|
|
2012-12-25 23:29:20 +00:00
|
|
|
<div id="metacodeImgTitle"></div>
|
2018-03-05 17:33:16 +00:00
|
|
|
<div className="clearfloat"></div>
|
2016-09-24 04:27:34 +00:00
|
|
|
|
|
|
|
<script>
|
2018-03-04 02:25:42 +00:00
|
|
|
{ @metacodes.each do |metacode| }
|
|
|
|
Metamaps.Create.selectedMetacodes.push("{ metacode.id }");
|
|
|
|
Metamaps.Create.newSelectedMetacodes.push("{ metacode.id }");
|
|
|
|
Metamaps.Create.selectedMetacodeNames.push("{ metacode.name }");
|
|
|
|
Metamaps.Create.newSelectedMetacodeNames.push("{ metacode.name }");
|
|
|
|
{ end }
|
2016-09-24 04:27:34 +00:00
|
|
|
</script>
|
2018-03-04 02:25:42 +00:00
|
|
|
{ end }
|