You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_form.html.erb 792B

1234567891011121314151617181920212223
  1. <%= error_messages_for @document %>
  2. <div class="box tabular">
  3. <p><%= f.select :category_id, DocumentCategory.active.collect {|c| [c.name, c.id]} %></p>
  4. <p><%= f.text_field :title, :required => true, :size => 60 %></p>
  5. <p><%= f.text_area :description, :cols => 60, :rows => 15, :class => 'wiki-edit',
  6. :data => {
  7. :auto_complete => true
  8. }
  9. %></p>
  10. <% @document.custom_field_values.each do |value| %>
  11. <p><%= custom_field_tag_with_label :document, value %></p>
  12. <% end %>
  13. </div>
  14. <%= wikitoolbar_for 'document_description' %>
  15. <% if @document.new_record? %>
  16. <div class="box tabular">
  17. <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form', :locals => {:container => @document} %></p>
  18. </div>
  19. <% end %>