%= form_for @topic, url: topic_url do |form| %>
Edit Topic
<%= select "category", "metacode_id", Metacode.order("name ASC").all.collect {|p| [ p.name, p.id ] }, { :selected => @topic.metacode.id } %>
<%= form.text_field :name %>
<%= form.text_area :desc, class: "description", :rows => 5 %>
<%= form.text_field :link, class: "link" %>
<%= form.select :permission, options_for_select(['commons', 'public', 'private'], @topic.permission) %>
<%= form.submit "Update", class: "update" %>
<% end %>