--- date: "2016-12-01T16:00:00+02:00" title: "安装" slug: "installation" weight: 10 toc: false draft: false menu: sidebar: name: "安装" weight: 10 identifier: "installation" --- />
summaryrefslogtreecommitdiffstats
path: root/redmine/app/views/projects/add_document.rhtml
blob: 13e75dd775c045490b37b27a63d8472164cf11d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<h2><%=_('New document')%></h2>

<%= error_messages_for 'document' %>
<%= start_form_tag( { :action => 'add_document', :id => @project }, :multipart => true) %>

<!--[form:document]-->
<p><label for="document_category_id"><%=_('Category')%></label><br />
<select name="document[category_id]">
<%= options_from_collection_for_select @categories, "id", "name",@document.category_id %>
</select></p>

<p><label for="document_title"><%=_('Title')%> <span class="required">*</span></label><br />
<%= text_field 'document', 'title', :size => 60 %></p>

<p><label for="document_descr"><%=_('Description')%> <span class="required">*</span></label><br />
<%= text_area 'document', 'descr', :cols => 60, :rows => 5 %></p>

<p><label for="attachment_file"><%=_('File')%></label><br/>
<%= file_field 'attachment', 'file'  %></p>

<!--[eoform:document]-->

<%= submit_tag _('Create') %>
<%= end_form_tag %>