2013-01-11 23:49:59 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# This file is a form for creating new topics. It is no longer used.
|
|
|
|
#%>
|
|
|
|
|
2013-01-01 22:45:35 +00:00
|
|
|
<div class="nothidden">
|
|
|
|
<%= form_for @topic || Topic.new, url: topics_path do |form| %>
|
|
|
|
<h3>Add Topic</h3>
|
|
|
|
<label for="category">Category</label>
|
|
|
|
<%= select_tag "category", options_from_collection_for_select(Metacode.order("name ASC").all, "id", "name") %>
|
|
|
|
<label for="topic_name">Title</label>
|
|
|
|
<%= form.text_field :name %>
|
|
|
|
<label for="topic_desc">Description</label>
|
|
|
|
<%= form.text_area :desc, class: "description", :rows => 5 %>
|
|
|
|
<label for="topic_link">Link</label>
|
|
|
|
<%= form.text_field :link, class: "link" %>
|
|
|
|
<label for="topic_permission">Permission</label>
|
|
|
|
<%= form.select(:permission, options_for_select(['commons', 'public', 'private'])) %>
|
|
|
|
<%= form.submit "Add Topic", class: "addTopic", id: "addTopic" %>
|
|
|
|
<% end %>
|
2013-01-11 23:49:59 +00:00
|
|
|
</div>
|