2015-12-11 16:30:50 +08:00
|
|
|
|
|
|
|
<div id="popbox_upload" class="mb10" style="margin-top: -30px;color:#15bccf; font-size:16px;">
|
|
|
|
<div class="upload_con">
|
|
|
|
<h2 style="text-align: center"><%= l(:label_upload_files)%></h2>
|
|
|
|
<div class="upload_box">
|
|
|
|
<%= error_messages_for 'attachment' %>
|
|
|
|
<div id="network_issue" style="color: red; display: none;"><%= l(:label_file_upload_error_messages)%></div>
|
|
|
|
|
2015-12-15 09:59:11 +08:00
|
|
|
<%= form_tag(org_subfield_files_path(org_subfield, :in_org => params[:in_org]), :multipart => true,:remote => !ie8?,:name=>"upload_form") do %>
|
2016-01-13 16:21:37 +08:00
|
|
|
<div class="c_dark">
|
|
|
|
<input name="org_subfield_attachment_type[]" type="checkbox" value="2" checked class="c_dblue">软件</input> <span class="c_grey">|</span>
|
|
|
|
<input name="org_subfield_attachment_type[]" type="checkbox" value="3" class="c_dblue">媒体</input> <span class="c_grey">|</span>
|
|
|
|
<input name="org_subfield_attachment_type[]" type="checkbox" value="4" class="c_dblue">代码</input> <span class="c_grey">|</span>
|
|
|
|
<input name="org_subfield_attachment_type[]" type="checkbox" value="5" class="c_dblue">其他</input></a>
|
|
|
|
</div>
|
2016-01-04 15:36:02 +08:00
|
|
|
<!--<input type="hidden" name="org_subfield_attachment_type" value="<%#= org_subfield_attachment_type%>">-->
|
|
|
|
<%= render :partial => 'files/org_subfield_upload_attachment_list', :locals => {:container => org_subfield}%>
|
2015-12-11 16:30:50 +08:00
|
|
|
<div class="cl"></div>
|
2016-06-16 16:55:25 +08:00
|
|
|
<div class="mb5">
|
|
|
|
<label class="fl c_dark f14" style="margin-top: 4px;">文件描述:</label>
|
|
|
|
<div class="fl">
|
|
|
|
<input type="text" name="description" placeholder="文件描述" class="InputBox fl W160">
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
2016-07-07 17:06:31 +08:00
|
|
|
<a href="javascript:void(0);" class="fr grey_btn mr40 ml10" onclick="hideModal();"><%= l(:button_cancel)%></a>
|
2015-12-11 16:30:50 +08:00
|
|
|
<a id="submit_resource" href="javascript:void(0);" class="blue_btn fr" onclick="submit_resource();"><%= l(:button_confirm)%></a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2015-12-14 16:41:18 +08:00
|
|
|
|
2015-12-11 16:30:50 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function submit_resource()
|
|
|
|
{
|
|
|
|
$('#submit_resource').parent().submit();
|
|
|
|
}
|
|
|
|
</script>
|