2013-01-11 23:49:59 +00:00
|
|
|
<%#
|
|
|
|
# Partial rendering form for a new topic on a map
|
|
|
|
# TODO: Where is this code used?
|
|
|
|
#%>
|
2012-12-16 20:00:43 +00:00
|
|
|
<div class="anypage">
|
2013-01-01 22:45:35 +00:00
|
|
|
<%= form_for Topic.new, url: topics_url, remote: true do |form| %>
|
2013-01-26 01:49:40 +00:00
|
|
|
<div id="metacodeImg">
|
2013-01-26 03:28:45 +00:00
|
|
|
<% @m = user.settings.unserialize().metacodes %>
|
2013-01-26 01:49:40 +00:00
|
|
|
<% @m.each do |m| %>
|
|
|
|
<% metacode = Metacode.find(m.to_i) %>
|
|
|
|
<img class="cloudcarousel" width="40" height="40" src="/assets/<%= metacode.icon %>" alt="<%= metacode.name %>" title="<%= metacode.name %>"/>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2013-01-01 22:45:35 +00:00
|
|
|
<%= form.autocomplete_field :name, autocomplete_topic_name_topics_path, :placeholder => "What is the name of your topic?" %>
|
2012-12-25 23:29:20 +00:00
|
|
|
<%= form.hidden_field :metacode, :value => "Action" %>
|
2012-12-16 20:00:43 +00:00
|
|
|
<%= form.hidden_field :x, :value => 0 %>
|
|
|
|
<%= form.hidden_field :y, :value => 0 %>
|
2013-01-25 05:47:32 +00:00
|
|
|
<% if (@map.permission == "commons" && authenticated?) || @map.user == user %>
|
|
|
|
<%= form.hidden_field :map, :value => @map.id %>
|
|
|
|
<% end %>
|
2013-01-01 22:45:35 +00:00
|
|
|
<%= form.hidden_field :grabTopic, :value => "null" %>
|
2012-12-25 23:29:20 +00:00
|
|
|
<%= form.hidden_field :addSynapse, :value => false %>
|
|
|
|
<!--<input id="left-but" type="button" value="Left" />-->
|
|
|
|
<div id="metacodeImgTitle"></div>
|
|
|
|
<!--<input id="right-but" type="button" value="Right" />-->
|
|
|
|
<div class="clearfloat"></div>
|
2012-10-26 10:04:52 +00:00
|
|
|
<% end %>
|
2013-01-11 23:49:59 +00:00
|
|
|
</div>
|