2015-03-31 15:57:15 +08:00
|
|
|
<div id="popbox_upload" style="margin-top: -30px;margin-left: -20px;margin-right: -10px;">
|
|
|
|
<div class="upload_con">
|
2015-04-29 10:44:05 +08:00
|
|
|
<h2>将此文件引入我的资源库</h2>
|
2015-03-31 15:57:15 +08:00
|
|
|
<% if error == '403' %>
|
|
|
|
<div class="upload_box">
|
|
|
|
<div style="color: red;">您没有权限引用此资源</div>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<div class="upload_box">
|
|
|
|
<div id="error_show" style="color: red;"></div>
|
|
|
|
<%= form_tag attach_relations_path,
|
|
|
|
method: :post,
|
|
|
|
remote: true,
|
|
|
|
id: "relation_file_form" do %>
|
|
|
|
<%= hidden_field_tag(:file_id, file.id) %>
|
2015-04-17 12:56:54 +08:00
|
|
|
<%= content_tag('div', projects_check_box_tags('projects[project][]', User.current.projects,project,file), :id => 'projects', :class => "hidden")%>
|
2016-07-07 15:08:34 +08:00
|
|
|
<a id="submit_quote" href="javascript:void(0)" class="blue_btn fl c_white" onclick="submit_quote();">引 用</a><a href="javascript:void(0)" class="grey_btn fl c_white ml10" onclick="closeModal();">取 消</a>
|
2015-03-31 15:57:15 +08:00
|
|
|
<% end -%>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function submit_quote()
|
|
|
|
{
|
|
|
|
$('#submit_quote').parent().submit();
|
|
|
|
}
|
|
|
|
</script>
|