15 lines
No EOL
719 B
Text
15 lines
No EOL
719 B
Text
<div class="anypage">
|
|
<%= form_for Item.new, url: items_path, remote: true do |form| %>
|
|
<button id="closenewtopic" onclick="$('#new_item').fadeOut('fast'); $('#new_item')[0].reset(); return false;">close</button>
|
|
<h3>Add Item</h3>
|
|
<label for="category">Category</label>
|
|
<%= select_tag "category", options_from_collection_for_select(ItemCategory.all, "id", "name") %>
|
|
<label for="item_name">Title</label>
|
|
<%= form.text_field :name %>
|
|
<label for="item_desc">Description</label>
|
|
<%= form.text_area :desc, class: "description", :rows => 5 %>
|
|
<label for="item_link">Link</label>
|
|
<%= form.text_field :link, class: "link" %>
|
|
<%= form.submit "Add Item", class: "addItem", id: "addItem" %>
|
|
<% end %>
|
|
</div> |