2007-03-12 20:59:02 +03:00
|
|
|
<h2><%=l(:label_attachment_new)%></h2>
|
|
|
|
|
|
|
|
<%= error_messages_for 'attachment' %>
|
|
|
|
<div class="box">
|
2010-09-01 19:17:45 +04:00
|
|
|
<% form_tag({ :action => 'new', :id => @project }, :multipart => true, :class => "tabular") do %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2008-12-09 21:00:27 +03:00
|
|
|
<% if @versions.any? %>
|
|
|
|
<p><label for="version_id"><%=l(:field_version)%></label>
|
|
|
|
<%= select_tag "version_id", content_tag('option', '') +
|
|
|
|
options_from_collection_for_select(@versions, "id", "name") %></p>
|
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2008-02-29 22:46:58 +03:00
|
|
|
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
|
|
|
<%= submit_tag l(:button_add) %>
|
2008-12-09 21:00:27 +03:00
|
|
|
<% end %>
|