%#
# @file
# This code renders the edit form. It is not used anymore; we use
# best_in_place instead.
#%>
<%= form_for @topic, url: topic_url do |form| %>
Edit Topic
Category
<%= select "category", "metacode_id", Metacode.order("name ASC").all.collect {|p| [ p.name, p.id ] }, { :selected => @topic.metacode.id } %>
Title
<%= form.text_field :name %>
Description
<%= form.text_area :desc, class: "description", :rows => 5 %>
Link
<%= form.text_field :link, class: "link" %>
<% if @topic.user == user %>
Permission
<%= form.select :permission, options_for_select(['commons', 'public', 'private'], @topic.permission) %>
<% end %>
<%= form.submit "Update", class: "update" %>
<% end %>