2007-03-12 20:59:02 +03:00
|
|
|
<h2><%=l(:label_attachment_new)%></h2>
|
|
|
|
|
|
|
|
<%= error_messages_for 'attachment' %>
|
2010-09-14 20:24:07 +04:00
|
|
|
<% form_tag(project_files_path(@project), :multipart => true, :class => "tabular") do %>
|
2012-02-23 19:42:15 +04:00
|
|
|
<div class="box">
|
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', '') +
|
2011-09-18 06:14:10 +04:00
|
|
|
options_from_collection_for_select(@versions, "id", "name") %></p>
|
2008-12-09 21:00:27 +03:00
|
|
|
<% 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 %>
|