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

9 lines
420 B
Text
Raw Normal View History

2012-12-16 20:00:43 +00:00
<div class="anypage">
<%= form_for Item.new, url: items_url, remote: true do |form| %>
2012-12-16 20:00:43 +00:00
<%= form.autocomplete_field :name, autocomplete_item_name_items_path, :placeholder => "What is the name of your topic?" %>
<%= form.hidden_field :x, :value => 0 %>
<%= form.hidden_field :y, :value => 0 %>
<%= form.hidden_field :map, :value => @map.id %>
<%= form.hidden_field :grabItem, :value => "null" %>
<% end %>
</div>