1 <%= error_messages_for 'document' %>
4 <p><label for="document_category_id"><%=l(:field_category)%></label>
5 <select name="document[category_id]">
6 <%= options_from_collection_for_select @categories, "id", "name", @document.category_id %>
9 <p><label for="document_title"><%=l(:field_title)%> <span class="required">*</span></label>
10 <%= text_field 'document', 'title', :size => 60 %></p>
12 <p><label for="document_description"><%=l(:field_description)%></label>
13 <%= text_area 'document', 'description', :cols => 60, :rows => 15, :class => 'wiki-edit' %></p>
14 <!--[eoform:document]-->
17 <% if Setting.text_formatting == 'textile' %>
18 <%= javascript_include_tag 'jstoolbar' %>
19 <script type="text/javascript">
21 if (document.getElementById) {
22 if (document.getElementById('document_description')) {
23 var commentTb = new jsToolBar(document.getElementById('document_description'));