2006-06-28 22:11:03 +04:00
|
|
|
<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>
|
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<p><label for="document_description"><%=_('Description')%> <span class="required">*</span></label><br />
|
|
|
|
<%= text_area 'document', 'description', :cols => 60, :rows => 5 %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
|
|
|
<p><label for="attachment_file"><%=_('File')%></label><br/>
|
|
|
|
<%= file_field 'attachment', 'file' %></p>
|
|
|
|
|
|
|
|
<!--[eoform:document]-->
|
|
|
|
|
|
|
|
<%= submit_tag _('Create') %>
|
|
|
|
<%= end_form_tag %>
|
|
|
|
|
|
|
|
|