metamaps--metamaps/app/views/topics/_new.html.erb

26 lines
952 B
Text
Raw Normal View History

<%#
# @file
# This file contains code for rendering a new topic form.
# It's called from the show topic / radial view pages
#%>
<div class="anypage">
<%= form_for Topic.new, url: topics_url, remote: true do |form| %>
<div id="metacodeImg">
2013-01-26 03:31:35 +00:00
<% @m = user.settings.metacodes %>
<% @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>
<%= form.text_field :name, :maxlength => 140, :placeholder => "title..." %>
<%= 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>