73 lines
3.4 KiB
Plaintext
73 lines
3.4 KiB
Plaintext
<div id="muban_popup_box" style="width:450px;">
|
|
<div class="muban_popup_top">
|
|
<h3 class="fl">上传资源</h3>
|
|
<a href="javascript:void(0);" class="muban_icons_close fr"></a>
|
|
<div class="cl"></div>
|
|
</div>
|
|
|
|
<div class="muban_popup_con clear mt15 ml40">
|
|
<div class="">
|
|
<%= error_messages_for 'attachment' %>
|
|
<div id="network_issue" style="color: red; display: none;"><%= l(:label_file_upload_error_messages)%></div>
|
|
|
|
<%= form_tag(project_files_path(project), :multipart => true, :remote => !ie8?, :name=>"upload_form") do %>
|
|
<input type="hidden" name="in_project_toolbar" value="Y">
|
|
<!--<p class="c_grey fr mt10 mr5">-->
|
|
<ul class="c_dark mt10 mb10 f14 attachment_type_ul">
|
|
<li class="fl">
|
|
<input id="atta_type_1" name="project_attachment_type[]" type="checkbox" value="1" checked class="fl" />
|
|
<label for="atta_type_1" class="c_grey fl ml5">软件版本 | </label>
|
|
</li>
|
|
<li class="fl">
|
|
<input id="atta_type_2" name="project_attachment_type[]" type="checkbox" value="2" class="fl"/>
|
|
<label for="atta_type_2" class="c_grey fl ml5">文档 | </label>
|
|
</li>
|
|
<li class="fl">
|
|
<input id="atta_type_3" name="project_attachment_type[]" type="checkbox" value="3" class="fl"/>
|
|
<label for="atta_type_3" class="c_grey fl ml5">代码 | </label>
|
|
</li>
|
|
<li class="fl">
|
|
<input id="atta_type_4" name="project_attachment_type[]" type="checkbox" value="4" class="fl"/>
|
|
<label for="atta_type_4" class="c_grey fl ml5">媒体 | </label>
|
|
</li>
|
|
<li class="fl">
|
|
<input id="atta_type_5" name="project_attachment_type[]" type="checkbox" value="5" class="fl"/>
|
|
<label for="atta_type_5" class="c_grey fl ml5">论文 | </label>
|
|
</li>
|
|
<li class="fl">
|
|
<input id="atta_type_6" name="project_attachment_type[]" type="checkbox" value="6" class="fl"/>
|
|
<label for="atta_type_6" class="c_grey fl ml5">其他</label>
|
|
</li>
|
|
</ul>
|
|
<div class="cl"></div>
|
|
<div class="mb10">
|
|
<%= render :partial => 'files/new_style_attachment_list',:locals => {:container => project} %>
|
|
</div>
|
|
<div class="cl"></div>
|
|
|
|
<div class="mb10">
|
|
<label class="fl c_dark f14" style="margin-top: 4px;">附件描述:</label>
|
|
<div class="fl ml10">
|
|
<textarea name="description" placeholder="介绍一下您的资源,让它得到更多人的青睐吧~" style="width: 276px; height: 60px; font-size: 12px;" class="InputBox fl"></textarea>
|
|
</div>
|
|
<div class="cl"></div>
|
|
</div>
|
|
|
|
<a href="javascript:void(0);" class="fr sy_btn_blue" style="margin-right: 47px;" id="submit_resource" onclick="submit_resource();" onfocus="this.blur()">确定</a>
|
|
<a href="javascript:void(0);" class="fr sy_btn_grey mr5" onclick="hideModal();">取消</a>
|
|
<div class="cl"></div>
|
|
<% end %>
|
|
</div>
|
|
|
|
</div>
|
|
<% content_for :header_tags do %>
|
|
<%= javascript_include_tag 'attachments' %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<script>
|
|
function submit_resource()
|
|
{
|
|
$('#submit_resource').parent().submit();
|
|
}
|
|
</script> |