作品列表提交按钮位置调整

dev_xiangzheng
Tim 10 years ago
parent 83b984a909
commit 4bedc81524

@ -1,35 +1,35 @@
<div class="fl"> <div class="fl">
<span id="attachments_fields<%= work.id%>" xmlns="http://www.w3.org/1999/html"> <span id="attachments_fields<%= work.id%>" xmlns="http://www.w3.org/1999/html">
</span> </span>
<div class="cl"></div> <div class="cl"></div>
<span class="add_attachment" style="font-weight:normal;"> <span class="add_attachment" style="font-weight:normal;">
<%= button_tag "文件浏览", :type=>"button", :onclick=>"$('#_file#{work.id}').click();",:onmouseover => 'this.focus()',:class => 'sub_btn' %> <%= button_tag "文件浏览", :type=>"button", :onclick=>"$('#_file#{work.id}').click();",:onmouseover => 'this.focus()',:class => 'sub_btn mb0' %>
<%= file_field_tag 'attachments[dummy][file]', <%= file_field_tag 'attachments[dummy][file]',
:id => "_file#{work.id}", :id => "_file#{work.id}",
:class => 'file_selector', :class => 'file_selector',
:multiple => true, :multiple => true,
:onchange => "addInputFiles_board(this, '#{work.id}');", :onchange => "addInputFiles_board(this, '#{work.id}');",
:style => 'display:none', :style => 'display:none',
:data => { :data => {
:max_file_size => Setting.attachment_max_size.to_i.kilobytes, :max_file_size => Setting.attachment_max_size.to_i.kilobytes,
:max_file_size_message => l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)), :max_file_size_message => l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)),
:max_concurrent_uploads => Redmine::Configuration['max_concurrent_ajax_uploads'].to_i, :max_concurrent_uploads => Redmine::Configuration['max_concurrent_ajax_uploads'].to_i,
:upload_path => uploads_path(:format => 'js'), :upload_path => uploads_path(:format => 'js'),
:description_placeholder => l(:label_optional_description), :description_placeholder => l(:label_optional_description),
:field_is_public => l(:field_is_public), :field_is_public => l(:field_is_public),
:are_you_sure => l(:text_are_you_sure), :are_you_sure => l(:text_are_you_sure),
:file_count => l(:label_file_count), :file_count => l(:label_file_count),
:delete_all_files => l(:text_are_you_sure_all), :delete_all_files => l(:text_are_you_sure_all),
:containerid => "#{work.id}" :containerid => "#{work.id}"
} %> } %>
<span id="upload_file_count<%= work.id%>"> <span id="upload_file_count<%= work.id%>">
<%= l(:label_no_file_uploaded) %> <%= l(:label_no_file_uploaded) %>
</span> </span>
(<%= l(:label_max_size) %>: (<%= l(:label_max_size) %>:
<%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>) <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
</span> </span>
<% content_for :header_tags do %> <% content_for :header_tags do %>
<%= javascript_include_tag 'attachments' %> <%= javascript_include_tag 'attachments' %>
<% end %> <% end %>
</div> </div>

@ -105,6 +105,7 @@ a.linkGrey6:hover {color:#ffffff !important;}
.mt12 { margin-top:12px;} .mt12 { margin-top:12px;}
.mt15 {margin-top:15px;} .mt15 {margin-top:15px;}
.mt19 {margin-top:19px !important;} .mt19 {margin-top:19px !important;}
.mb0 {margin-bottom: 0px !important;}
.mb4{ margin-bottom:4px;} .mb4{ margin-bottom:4px;}
.mb5{ margin-bottom:5px;} .mb5{ margin-bottom:5px;}
.mb8 {margin-bottom:8px !important;} .mb8 {margin-bottom:8px !important;}

@ -108,6 +108,7 @@ h4{ font-size:14px; color:#3b3b3b;}
.mt15 {margin-top:15px;} .mt15 {margin-top:15px;}
.mt19 {margin-top:19px !important;} .mt19 {margin-top:19px !important;}
.ml70{margin-left: 70px;} .ml70{margin-left: 70px;}
.mb0 {margin-bottom: 0px !important;}
.mb4{ margin-bottom:4px;} .mb4{ margin-bottom:4px;}
.mb5{ margin-bottom:5px;} .mb5{ margin-bottom:5px;}
.mb8 {margin-bottom:8px;} .mb8 {margin-bottom:8px;}

Loading…
Cancel
Save