%= 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', :data => { :auto_complete => true } %>
<% @document.custom_field_values.each do |value| %><%= custom_field_tag_with_label :document, value %>
<% end %> <% if @document.new_record? %><%= render :partial => 'attachments/form', :locals => {:container => @document} %>
<% end %>