summaryrefslogtreecommitdiffstats
path: root/app/views/documents/_form.html.erb
blob: 139afe24a499a7192a3d28659d4e4cb9a8617707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<%= error_messages_for @document %>

<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',
                    :data => {
                        :auto_complete => true
                    } %></p>

  <% @document.custom_field_values.each do |value| %>
    <p><%= custom_field_tag_with_label :document, value %></p>
  <% end %>

  <% if @document.new_record? %>
    <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form', :locals => {:container => @document} %></p>
  <% end %>
</div>

<%= wikitoolbar_for 'document_description' %>