socialforge/app/views/users/user_resource.html.erb

102 lines
4.7 KiB
Plaintext
Raw Normal View History

2015-09-25 10:35:04 +08:00
<%= javascript_include_tag 'bootstrap'%>
<%= stylesheet_link_tag 'project' %>
<%= stylesheet_link_tag 'leftside' %>
<%= javascript_include_tag 'attachments'%>
<!--<script type="text/css">-->
<!--html,body{ overflow-y:scroll;}-->
<!--html,body{ overflow:scroll; min-height:101%;}-->
<!--html{ overflow:-moz-scrollbars-vertical;}-->
<!--</script>-->
<script>
function remote_get_resources(user_id,type){
}
2016-03-02 16:54:07 +08:00
$(document).ready(function(){
2016-03-04 18:22:22 +08:00
$(".resource-switch").click(function(){
2016-03-02 16:54:07 +08:00
$(".resource-switch").children().removeClass("resource-tab-active");
$(this).children().addClass("resource-tab-active");
});
});
2015-09-25 10:35:04 +08:00
function remote_search(){
$("#resource_search_form").submit();
}
function closeModal()
{
hideModal($(".uploadBoxContainer"));
}
function closePopUp(){
hideModal($(".boxContainer"));
}
function check_files(){
return $("#attachments_fields").children().length == 0;
}
function submit_files(){
$("#upload_form").submit();
}
function check_des(event){
if($(".sectionContent").find('input[type="radio"]:checked').length <= 0){
event.preventDefault();
$(".orgDirection").text('目标地址组织不能为空')
return false;
}else if($(".columnContent").find('input[type="radio"]:checked').length <= 0){
event.preventDefault();
$(".orgDirection").text('目标地址栏目不能为空')
return false;
}else{
return true;
}
}
2015-09-25 10:35:04 +08:00
</script>
2016-03-04 09:57:54 +08:00
<div>
2016-03-02 11:30:19 +08:00
<ul class="resource-banner">
2016-03-02 16:54:07 +08:00
<li class="fl resource-switch">
2016-03-04 18:22:22 +08:00
<a href="<%= user_resource_user_path(@user, :type => '6', :status => @status) %>" class="resource-tab resource-tab-active" id="public_resource_list" data-remote="true">公共资源</a>
2016-03-02 16:54:07 +08:00
</li>
<li class="fl resource-switch">
2016-03-04 18:22:22 +08:00
<a href="<%= user_resource_user_path(@user, :type => '1', :status => @status) %>" class="resource-tab" id="my_resource_list" data-remote="true">我的资源</a>
2016-03-02 16:54:07 +08:00
</li>
2016-03-02 11:30:19 +08:00
<li class="fl w770 border-bottom h34">&nbsp;</li>
<li class="fr resource-banner-li border-bottom h34">
<ul class="resourcesSelect">
<li class="resourcesSelected"><a href="javascript:void(0);" class="resourcesIcon"></a>
<ul class="resourcesType">
<li>
2016-03-04 18:22:22 +08:00
<a href="<%= user_resource_user_path(:id => @user.id, :type => @type, :status => 1)%>" id="resource_type_all" class="resourcesTypeAll resourcesGrey" data-method="get" data-remote="true">全部 </a>
2016-03-02 11:30:19 +08:00
</li>
<li>
2016-03-04 18:22:22 +08:00
<a href="<%= user_resource_user_path(:id => @user.id, :type => @type, :status => 2) %>" id="resource_type_course" class="homepagePostTypeAssignment postTypeGrey'" data-method="get" data-remote="true">课程资源 </a>
<%#= link_to '课程资源' ,user_resource_user_path(:id => @user.id, :type => 2), id="resource_type_course", :remote => true, :method => 'get', :class=> 'homepagePostTypeAssignment postTypeGrey' %>
2016-03-02 11:30:19 +08:00
</li>
<li>
2016-03-04 18:22:22 +08:00
<a href="<%= user_resource_user_path(:id => @user.id, :type => @type, :status => 3) %>" id="resource_type_project" class="homepagePostTypeQuiz postTypeGrey" data-method="get" data-remote="true">项目资源 </a>
<%#= link_to '项目资源' ,user_resource_user_path(:id => @user.id, :type => 3), id="resource_type_project", :remote => true, :method => 'get', :class => 'homepagePostTypeQuiz postTypeGrey' %>
2016-03-02 11:30:19 +08:00
</li>
<li>
2016-03-04 18:22:22 +08:00
<a href="<%= user_resource_user_path(:id => @user.id, :type => @type, :status => 5) %>" id="resource_type_user" class="resourcesTypeUser resourcesGrey" data-method="get" data-remote="true">用户资源 </a>
<%#= link_to '用户资源' ,user_resource_user_path(:id=>@user.id,:type=>5), id="resource_type_user", :remote=>true,:method => 'get', :class=>'resourcesTypeUser resourcesGrey' %>
2016-03-02 11:30:19 +08:00
</li>
<li>
2016-03-04 18:22:22 +08:00
<a href="<%= user_resource_user_path(:id => @user.id, :type => @type, :status => 4) %>" id="resource_type_file" class="resourcesTypeAtt resourcesGrey" data-method="get" data-remote="true">附件 </a>
<%#= link_to '附件' ,user_resource_user_path(:id=>@user.id,:type=>4), id="resource_type_file", :remote=>true,:method => 'get',:class=>'resourcesTypeAtt resourcesGrey' %>
2016-03-01 17:33:44 +08:00
</li>
</ul>
</li>
</ul>
2016-03-02 11:30:19 +08:00
</li>
<div class="cl"></div>
</ul>
<div class="cl"></div>
<div id ="resource_remote">
<%= render :partial => 'user_resource_info' %>
2015-09-25 10:35:04 +08:00
</div>
</div>
<div class="cl"></div>
2016-03-02 11:30:19 +08:00
2015-09-25 10:35:04 +08:00