<% form_tag({ :action => 'create', :id => @project }, :multipart => true, :class => "tabular") do %>
<% if @versions.any? %>
<%= select_tag "version_id", content_tag('option', '') +
options_from_collection_for_select(@versions, "id", "name") %>
<% end %>
<%= render :partial => 'attachments/form' %>
<%= submit_tag l(:button_add) %>
<% end %>