2006-07-29 23:54:22 +04:00
|
|
|
<h2><%=l(:label_attachment_new)%></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-07-29 23:54:22 +04:00
|
|
|
<%= error_messages_for 'attachment' %>
|
2006-12-16 19:31:11 +03:00
|
|
|
<div class="box">
|
2007-01-26 22:56:25 +03:00
|
|
|
<% form_tag({ :action => 'add_file', :id => @project }, :multipart => true, :class => "tabular") do %>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-12-16 19:31:11 +03:00
|
|
|
<p><label for="version_id"><%=l(:field_version)%> <span class="required">*</span></label>
|
|
|
|
<%= select_tag "version_id", options_from_collection_for_select(@versions, "id", "name") %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2007-01-08 22:21:59 +03:00
|
|
|
<p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
|
|
|
|
<%= image_to_function "add.png", "addFileField();return false" %></label>
|
2007-01-26 23:02:49 +03:00
|
|
|
<%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
|
2006-12-16 19:31:11 +03:00
|
|
|
</div>
|
2006-07-29 23:54:22 +04:00
|
|
|
<%= submit_tag l(:button_add) %>
|
2007-01-26 22:56:25 +03:00
|
|
|
<% end %>
|