29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
<div id="popbox_upload" style="margin-top: -30px;margin-left: -20px;margin-right: -10px;">
|
|
<div class="upload_con">
|
|
<h2>将此文件引入我的资源库</h2>
|
|
<% 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) %>
|
|
<%= 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="grey_btn fl c_white ml10" onclick="closeModal();">取 消</a>
|
|
<% end -%>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function submit_quote()
|
|
{
|
|
$('#submit_quote').parent().submit();
|
|
}
|
|
</script> |