summaryrefslogtreecommitdiffstats
path: root/app/views/files/new.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/files/new.html.erb')
-rw-r--r--app/views/files/new.html.erb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/files/new.html.erb b/app/views/files/new.html.erb
new file mode 100644
index 000000000..bbb3b1733
--- /dev/null
+++ b/app/views/files/new.html.erb
@@ -0,0 +1,16 @@
+<h2><%=l(:label_attachment_new)%></h2>
+
+<%= error_messages_for 'attachment' %>
+<div class="box">
+<% form_tag({ :action => 'new', :id => @project }, :multipart => true, :class => "tabular") do %>
+
+<% 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 %>
+
+<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
+</div>
+<%= submit_tag l(:button_add) %>
+<% end %>