OSDN Git Service

added svn:eol-style native property on /app files
[redminele/redmine.git] / app / views / documents / _form.rhtml
1 <%= error_messages_for 'document' %>
2 <div class="box">
3 <!--[form: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 %>
7 </select></p>
8
9 <p><label for="document_title"><%=l(:field_title)%> <span class="required">*</span></label>
10 <%= text_field 'document', 'title', :size => 60 %></p>
11
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]-->
15 </div>
16
17 <% if Setting.text_formatting == 'textile' %>
18 <%= javascript_include_tag 'jstoolbar' %>
19 <script type="text/javascript">
20 //<![CDATA[
21 if (document.getElementById) { 
22         if (document.getElementById('document_description')) { 
23                 var commentTb = new jsToolBar(document.getElementById('document_description')); 
24                 commentTb.draw(); 
25         }
26 }
27 //]]>
28 </script>
29 <% end %>