调整上传资源界面

This commit is contained in:
nwb 2014-05-16 16:29:01 +08:00
parent 5c71d7e8be
commit 8f153520b4
3 changed files with 26 additions and 15 deletions

View File

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

View File

@ -143,7 +143,7 @@ zh:
attachment_all: "全部" attachment_all: "全部"
attachment_sufix_browse: "文件类型" attachment_sufix_browse: "文件类型"
attachment_browse: "内容类型" attachment_browse: "内容类型"
attachment_type: '资源分类' attachment_type: '分类'
general_text_No: '否' general_text_No: '否'
general_text_Yes: '是' general_text_Yes: '是'
general_text_no: '否' general_text_no: '否'

View File

@ -1319,7 +1319,7 @@ tr.entry td.filename_no_report { width: 70%; }
tr.entry td.size { text-align: right; font-size: 90%; } tr.entry td.size { text-align: right; font-size: 90%; }
tr.entry td.revision, tr.entry td.author { text-align: center; } tr.entry td.revision, tr.entry td.author { text-align: center; }
tr.entry td.age { text-align: right; } tr.entry td.age { text-align: right; }
tr.entry.file td.filename a { margin-left: 16px; } tr.entry.file td.filename a { margin-center: 16px; }
tr.entry.file td.filename_no_report a { margin-left: 16px; } tr.entry.file td.filename_no_report a { margin-left: 16px; }
tr span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;} tr span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;}