_form.html.erb
19 lines
| 697 B
| text/plain
|
TextLexer
|
r8897 | <%= error_messages_for @document %> | ||
|
r330 | |||
|
r7890 | <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> | ||||
|
r13622 | |||
<% @document.custom_field_values.each do |value| %> | ||||
<p><%= custom_field_tag_with_label :document, value %></p> | ||||
<% end %> | ||||
|
r58 | </div> | ||
|
r545 | <%= wikitoolbar_for 'document_description' %> | ||
|
r7890 | |||
<% if @document.new_record? %> | ||||
<div class="box tabular"> | ||||
|
r8824 | <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form', :locals => {:container => @document} %></p> | ||
|
r7890 | </div> | ||
<% end %> | ||||