引入资源列表界面调整
This commit is contained in:
parent
0607cf326c
commit
fc8dacbd5f
|
@ -61,7 +61,7 @@ module FilesHelper
|
||||||
s = ''
|
s = ''
|
||||||
projects.each do |project|
|
projects.each do |project|
|
||||||
if !project_contains_attachment?(project,attachment) && User.current.allowed_to?(:manage_files, project)
|
if !project_contains_attachment?(project,attachment) && User.current.allowed_to?(:manage_files, project)
|
||||||
s << "<label>#{ check_box_tag name, project.id, false, :id => nil } #{h project.name}</label>"
|
s << "<label>#{ check_box_tag name, project.id, false, :id => nil } #{h project.name}</label><br/>"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
s.html_safe
|
s.html_safe
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div id="popbox_upload" style="margin-top: -30px;margin-left: -20px;margin-right: -10px;">
|
<div id="popbox_upload" style="margin-top: -30px;margin-left: -20px;margin-right: -10px;">
|
||||||
<div class="upload_con">
|
<div class="upload_con">
|
||||||
<h2>将此课件引入我的资源库</h2>
|
<h2>将此文件件引入我的资源库</h2>
|
||||||
<% if error == '403' %>
|
<% if error == '403' %>
|
||||||
<div class="upload_box">
|
<div class="upload_box">
|
||||||
<div style="color: red;">您没有权限引用此资源</div>
|
<div style="color: red;">您没有权限引用此资源</div>
|
||||||
|
@ -13,13 +13,11 @@
|
||||||
remote: true,
|
remote: true,
|
||||||
id: "relation_file_form" do %>
|
id: "relation_file_form" do %>
|
||||||
<%= hidden_field_tag(:file_id, file.id) %>
|
<%= hidden_field_tag(:file_id, file.id) %>
|
||||||
<%= content_tag('div', projects_check_box_tags('projects[project][]', User.current.projects,project,file), :id => 'projects')%>
|
<%= content_tag('div', projects_check_box_tags('projects[project][]', User.current.projects,project,file), :id => 'projects', :class => "hidden")%>
|
||||||
<a id="submit_quote" href="javascript:void(0)" class="blue_btn fl c_white" onclick="submit_quote();">引 用</a><a href="javascript:void(0)" class="blue_btn grey_btn fl c_white" onclick="closeModal();">取 消</a>
|
<a id="submit_quote" href="javascript:void(0)" class="blue_btn fl c_white" onclick="submit_quote();">引 用</a><a href="javascript:void(0)" class="blue_btn grey_btn fl c_white" onclick="closeModal();">取 消</a>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue