%= error_messages_for @document %>
<%= f.select :category_id, DocumentCategory.active.collect {|c| [c.name, c.id]} %>
<%= f.text_field :title, :required => true, :size => 60 %>
<%= f.text_area :description, :cols => 60, :rows => 15, :class => 'wiki-edit' %>
<% @document.custom_field_values.each do |value| %><%= custom_field_tag_with_label :document, value %>
<% end %><%= render :partial => 'attachments/form', :locals => {:container => @document} %>