<%= f.error_messages %>

<%= 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' %>

<%= wikitoolbar_for 'document_description' %> <% if @document.new_record? %>

<%= render :partial => 'attachments/form', :locals => {:container => @document} %>

<% end %>