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

79 lines
2.6 KiB
Plaintext
Raw Normal View History

2016-03-15 15:42:20 +08:00
<%= javascript_include_tag 'bootstrap' %>
2016-06-24 09:30:46 +08:00
<%= stylesheet_link_tag 'css/project' %>
<%= stylesheet_link_tag 'css/structure' %>
<%= stylesheet_link_tag 'css/popup' %>
2016-03-15 15:42:20 +08:00
<%= javascript_include_tag 'attachments' %>
2015-09-25 10:35:04 +08:00
<script>
function remote_get_resources(user_id,type){
}
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">
<a href="<%= user_resource_user_path(@user, :type => '6', :status => 6) %>" 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">
<a href="<%= user_resource_user_path(@user, :type => '1', :status => 6) %>" class="resource-tab" id="my_resource_list" data-remote="true">我的资源</a>
2016-03-02 16:54:07 +08:00
</li>
2016-05-25 09:10:41 +08:00
<!--<li class="fl resource-switch">-->
<!--<a href="<%#= user_resource_user_path(@user, :type => '2', :status => 6) %>" class="resource-tab" id="private_resource_list" data-remote="true">申请资源</a>-->
<!--</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">
<div id="user_resource_type_filter">
<%= render :partial => 'user_resource_type_filter' %>
</div>
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
2016-08-31 15:42:17 +08:00
<script>
$(".resource-switch").click(function(){
$(".resource-switch").children().removeClass("resource-tab-active");
$(this).children().addClass("resource-tab-active");
});
</script>
2015-09-25 10:35:04 +08:00