2007-03-12 20:59:02 +03:00
|
|
|
<h2><%=l(:label_attachment_new)%></h2>
|
|
|
|
|
|
|
|
<%= error_messages_for 'attachment' %>
|
|
|
|
<div class="box">
|
2010-09-14 20:24:07 +04:00
|
|
|
<% form_tag(project_files_path(@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) %>
|
2011-09-17 10:01:06 +04:00
|
|
|
<% end %>
|