2013-01-11 23:49:59 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# This file contains code for rendering a new topic form.
|
2014-02-01 08:57:19 +00:00
|
|
|
# It's called from the show topic / radial view pages
|
2013-01-11 23:49:59 +00:00
|
|
|
#%>
|
|
|
|
|
2013-01-01 22:45:35 +00:00
|
|
|
<div class="anypage">
|
|
|
|
<%= 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:31:35 +00:00
|
|
|
<% @m = user.settings.metacodes %>
|
2014-02-03 05:35:21 +00:00
|
|
|
<% @metacodes = [] %>
|
2013-01-26 01:49:40 +00:00
|
|
|
<% @m.each do |m| %>
|
2014-02-03 05:35:21 +00:00
|
|
|
<% @metacodes.push(Metacode.find(m.to_i)) %>
|
|
|
|
<% end %>
|
|
|
|
<% @metacodes.sort! {|m1,m2| m2.name.downcase <=> m1.name.downcase }.rotate!(-1) %>
|
|
|
|
<% @metacodes.each do |metacode| %>
|
2014-05-17 18:57:03 +00:00
|
|
|
<img class="cloudcarousel" width="40" height="40" src="<%= metacode.icon %>" alt="<%= metacode.name %>" title="<%= metacode.name %>"/>
|
2013-01-26 01:49:40 +00:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2014-02-01 08:57:19 +00:00
|
|
|
<%= form.text_field :name, :maxlength => 140, :placeholder => "title..." %>
|
2013-01-01 22:45:35 +00:00
|
|
|
<%= form.hidden_field :metacode, :value => "Action" %>
|
|
|
|
<%= form.hidden_field :x, :value => 0 %>
|
|
|
|
<%= form.hidden_field :y, :value => 0 %>
|
|
|
|
<%= form.hidden_field :grabTopic, :value => "null" %>
|
|
|
|
<%= form.hidden_field :addSynapse, :value => false %>
|
|
|
|
<div id="metacodeImgTitle"></div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|