|
|
|
@ -5,21 +5,32 @@
|
|
|
|
|
<%= 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>
|
|
|
|
|
<% end %>
|
|
|
|
|
<p>
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<% if versions.any? %>
|
|
|
|
|
<td><p><%= l(:field_version) %></p></td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= select_tag "version_id", content_tag('option', '') +
|
|
|
|
|
options_from_collection_for_select(versions, "id", "name"), {style: 'width:100px'} %>
|
|
|
|
|
</td>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% if attachmenttypes.any? %>
|
|
|
|
|
<td><%= l(:attachment_type) %></label></td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= select_tag "attachment_type",
|
|
|
|
|
options_from_collection_for_select(attachmenttypes, "id",
|
|
|
|
|
"typeName", 2), {style: 'width:100px'} %>
|
|
|
|
|
</td>
|
|
|
|
|
<% end %>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% if attachmenttypes.any? %>
|
|
|
|
|
<p> <label for="attachment_type"><%=l(:attachment_type)%></label>
|
|
|
|
|
<%= select_tag "attachment_type",
|
|
|
|
|
options_from_collection_for_select(attachmenttypes, "id",
|
|
|
|
|
"typeName",2) %>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
|
|
|
|
|
<p><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
|
|
|
|
|
</div>
|
|
|
|
|
<%= submit_tag l(:button_add) %>
|
|
|
|
|
<% end %>
|
|
|
|
|