metamaps--metamaps/views/maps/_newtopic.html.erb

33 lines
1.2 KiB
Text
Raw Normal View History

2016-09-24 04:27:34 +00:00
<% @metacodes = user_metacodes() %>
<%= form_for Topic.new, url: topics_url, remote: true do |form| %>
<div class="openMetacodeSwitcher openLightbox" data-open="switchMetacodes">
<div class="tooltipsAbove">Switch Metacodes</div>
</div>
2016-09-24 04:27:34 +00:00
<div class="pinCarousel">
<div class="tooltipsAbove helpPin">Pin Open</div>
<div class="tooltipsAbove helpUnpin">Unpin</div>
</div>
2016-09-24 04:27:34 +00:00
<div id="metacodeImg">
<% @metacodes.each do |metacode| %>
2015-10-23 15:42:21 +00:00
<img class="cloudcarousel" width="40" height="40" src="<%= asset_path metacode.icon %>" alt="<%= metacode.name %>" title="<%= metacode.name %>" data-id="<%= metacode.id %>" />
<% end %>
</div>
2016-09-24 04:27:34 +00:00
<%= form.text_field :name, :maxlength => 140, :placeholder => "title..." %>
2016-09-24 04:27:34 +00:00
<div id="metacodeImgTitle"></div>
<div class="clearfloat"></div>
2016-09-24 04:27:34 +00:00
<script>
<% @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 %>");
2016-09-24 04:27:34 +00:00
<% end %>
</script>
<% end %>