socialforge/app/views/files/new.html.erb

18 lines
627 B
Plaintext
Raw Normal View History

<div class="project_r_h">
2015-03-11 14:32:29 +08:00
<h2 class="project_h2"><%= l(:label_course_file) %></h2>
</div>
2014-03-11 10:45:01 +08:00
<%= error_messages_for 'attachment' %>
<%= form_tag(project_files_path(@project), :multipart => true, :class => "tabular") do %>
<div class="box">
<% 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>
2014-03-11 10:45:01 +08:00
<% end %>
<p><label><%= l(:label_attachment_plural) %></label><%= render :partial => 'attachments/form' %></p>
2014-03-11 10:45:01 +08:00
</div>
<%= submit_tag l(:button_add) %>
<% end %>