2013-08-01 10:33:49 +08:00
|
|
|
<%= error_messages_for @document %>
|
|
|
|
|
|
|
|
<div class="box tabular">
|
2014-07-14 10:44:07 +08:00
|
|
|
<p><%= f.select :category_id, DocumentCategory.active.collect {|c| [c.name, c.id]} %> </p>
|
|
|
|
<p> <em style ="display: block;font-size: 90%;font-style: normal;"><%= f.check_box :is_public, :style => "margin-left:10px;" %>
|
|
|
|
<%= l(:label_document_public_info) %></em>
|
|
|
|
</p>
|
2013-08-01 10:33:49 +08:00
|
|
|
<p><%= f.text_field :title, :required => true, :size => 60 %></p>
|
|
|
|
<p><%= f.text_area :description, :cols => 60, :rows => 15, :class => 'wiki-edit' %></p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= wikitoolbar_for 'document_description' %>
|
|
|
|
|
2015-03-18 15:50:00 +08:00
|
|
|
|
2013-08-01 10:33:49 +08:00
|
|
|
<div class="box tabular">
|
|
|
|
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form', :locals => {:container => @document} %></p>
|
|
|
|
</div>
|
2015-03-18 15:50:00 +08:00
|
|
|
|