2011-11-30 23:51:16 +04:00
|
|
|
<%= f.error_messages %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2011-11-30 23:51:16 +04:00
|
|
|
<div class="box tabular">
|
|
|
|
<p><%= f.select :category_id, DocumentCategory.active.collect {|c| [c.name, c.id]} %></p>
|
|
|
|
<p><%= f.text_field :title, :required => true, :size => 60 %></p>
|
|
|
|
<p><%= f.text_area :description, :cols => 60, :rows => 15, :class => 'wiki-edit' %></p>
|
2006-12-01 01:00:35 +03:00
|
|
|
</div>
|
|
|
|
|
2007-05-27 16:38:29 +04:00
|
|
|
<%= wikitoolbar_for 'document_description' %>
|
2011-11-30 23:51:16 +04:00
|
|
|
|
|
|
|
<% if @document.new_record? %>
|
|
|
|
<div class="box tabular">
|
|
|
|
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
|
|
|
|
</div>
|
|
|
|
<% end %>
|