2012-02-26 18:07:13 +00:00
|
|
|
<%= error_messages_for @document %>
|
2007-03-12 17:59:02 +00:00
|
|
|
|
2011-11-30 19:51:16 +00:00
|
|
|
<div class="box tabular">
|
2022-03-19 08:07:32 +00:00
|
|
|
<p><%= f.select :category_id, DocumentCategory.active.collect {|c| [c.name, c.id]} %></p>
|
|
|
|
|
<p><%= f.text_field :title, :required => true, :size => 60 %></p>
|
2025-10-06 22:45:02 +00:00
|
|
|
<p><%= f.textarea :description, :cols => 60, :rows => 15, :class => 'wiki-edit',
|
2022-03-19 08:07:32 +00:00
|
|
|
:data => {
|
|
|
|
|
:auto_complete => true
|
2025-09-21 16:42:07 +00:00
|
|
|
}.merge(list_autofill_data_attributes)
|
|
|
|
|
%></p>
|
2015-02-14 10:44:59 +00:00
|
|
|
|
2022-03-19 08:07:32 +00:00
|
|
|
<% @document.custom_field_values.each do |value| %>
|
|
|
|
|
<p><%= custom_field_tag_with_label :document, value %></p>
|
|
|
|
|
<% end %>
|
2022-03-19 08:08:09 +00:00
|
|
|
|
|
|
|
|
<% if @document.new_record? %>
|
|
|
|
|
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form', :locals => {:container => @document} %></p>
|
|
|
|
|
<% end %>
|
2006-11-30 22:00:35 +00:00
|
|
|
</div>
|
|
|
|
|
|
2007-05-27 12:38:29 +00:00
|
|
|
<%= wikitoolbar_for 'document_description' %>
|