_form.html.erb
15 lines
| 523 B
| text/plain
|
TextLexer
|
r7890 | <%= f.error_messages %> | ||
|
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> | ||||
|
r58 | </div> | ||
|
r545 | <%= wikitoolbar_for 'document_description' %> | ||
|
r7890 | |||
<% if @document.new_record? %> | ||||
<div class="box tabular"> | ||||
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p> | ||||
</div> | ||||
<% end %> | ||||