课程成员列表显示
This commit is contained in:
parent
046536230c
commit
98bf8dd494
|
@ -402,6 +402,9 @@ class CoursesController < ApplicationController
|
|||
@issue_category ||= IssueCategory.new
|
||||
@member ||= @course.members.new
|
||||
@trackers = Tracker.sorted.all
|
||||
|
||||
@roles = Role.givable.all[3..5]
|
||||
@members = @course.member_principals.includes(:roles, :principal).all.sort
|
||||
else
|
||||
render_403
|
||||
end
|
||||
|
|
|
@ -0,0 +1,54 @@
|
|||
<div class="members_left">
|
||||
<ul style=" border-bottom:none;">
|
||||
<li>
|
||||
<span class="w150 f_b" >
|
||||
用户
|
||||
</span>
|
||||
<span class="w150 f_b">
|
||||
角色
|
||||
</span>
|
||||
<span></span>
|
||||
</li>
|
||||
|
||||
<div id="course_member_list">
|
||||
<%= render :partial => "member" %>
|
||||
</div>
|
||||
</ul>
|
||||
</div><!-- 左边-->
|
||||
<div class="members_right">
|
||||
<p class="c_blue fb mt10 mb5">添加成员</p>
|
||||
<div class="member_search">
|
||||
<input class="member_search_input fl" type="text" name="" value="输入用户名称搜索好友">
|
||||
<a class="invi_search_btn fl c_white" >搜索</a>
|
||||
<div class="cl"></div>
|
||||
<ul class="mb5">
|
||||
<li><input type="checkbox" name="" checked=""> <label >suntao</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >suntaoalibb</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >用户名称</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >suntao</label> </li>
|
||||
<li><input type="checkbox" name="" checked=""> <label >suntao</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >suntaoalibb</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >用户名称</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >suntao</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >用户名称</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >suntao</label> </li>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
<ul class="wlist mr40" >
|
||||
<li><a href="#">下一页</a></li>
|
||||
<li><a href="#">...</a></li>
|
||||
<li><a href="#">2</a></li>
|
||||
<li class="wlist_select" ><a href="#">1</a></li>
|
||||
<li><a href="#">上一页</a></li>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
<ul class="rolebox mb10 mt10">
|
||||
<li class="fb">角色: </li>
|
||||
<li ><input class="fl" type="checkbox" name="" checked=""> <label >Manager</label> </li>
|
||||
<li ><input type="checkbox" name="" > <label >Developer</label> </li>
|
||||
<li ><input type="checkbox" name="" > <label >Reporter</label> </li>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
<a href="#" class="member_btn">新增成员</a>
|
||||
</div>
|
||||
</div><!-- 右边 end-->
|
|
@ -0,0 +1,13 @@
|
|||
<% @members.each do |member| %>
|
||||
<li >
|
||||
<%= link_to_user_header member.principal,true,:class => "w150 c_orange fl" %>
|
||||
<span class="w150 fl">
|
||||
<%= h member.roles.sort.collect(&:to_s).join(', ') %>
|
||||
</span>
|
||||
<a href="#" class="c_dblue w40 fl">编辑</a>
|
||||
<%= delete_link membership_path(member),
|
||||
:remote => true,
|
||||
:class => "c_dblue w40 fl",
|
||||
:data => (!User.current.admin? && member.include?(User.current) ? {:confirm => l(:text_own_membership_delete_confirmation)} : {confirm: l(:label_delete_confirm)}) if member.deletable? %>
|
||||
</li>
|
||||
<% end%>
|
|
@ -70,52 +70,7 @@
|
|||
</div>
|
||||
|
||||
<div class="hwork_undis" id="tbc_02">
|
||||
<div class="members_left">
|
||||
<ul style=" border-bottom:none;">
|
||||
<li><span class="w150 f_b" >用户</span><span class="w150 f_b">角色</span><span></span></li>
|
||||
<li ><a href="#" class="w150 c_orange fl">gugu01</a><span class="w150 fl">发布人员</span><a href="#" class="c_dblue w90 fl">删除</a></li>
|
||||
<li ><a href="#" class="w150 c_orange fl">gugu01</a><span class="w150 fl">发布人员</span><a href="#" class="c_dblue w90 fl">删除</a></li>
|
||||
<li ><a href="#" class="w150 c_orange fl">gugu01</a><span class="w150 fl">发布人员</span><a href="#" class="c_dblue w90 fl">删除</a></li>
|
||||
<li ><a href="#" class="w150 c_orange fl">gugu01</a><span class="w150 fl">发布人员</span><a href="#" class="c_dblue w90 fl">删除</a></li>
|
||||
<li ><a href="#" class="w150 c_orange fl">gugu01</a><span class="w150 fl">发布人员</span><a href="#" class="c_dblue w90 fl">删除</a></li>
|
||||
</ul>
|
||||
</div><!-- 左边-->
|
||||
<div class="members_right">
|
||||
<p class="c_blue fb mt10 mb5">添加成员</p>
|
||||
<div class="member_search">
|
||||
<input class="member_search_input fl" type="text" name="" value="输入用户名称搜索好友"><a class="invi_search_btn fl c_white" >搜索</a>
|
||||
<div class="cl"></div>
|
||||
<ul class="mb5">
|
||||
<li><input type="checkbox" name="" checked=""> <label >suntao</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >suntaoalibb</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >用户名称</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >suntao</label> </li>
|
||||
<li><input type="checkbox" name="" checked=""> <label >suntao</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >suntaoalibb</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >用户名称</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >suntao</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >用户名称</label> </li>
|
||||
<li><input type="checkbox" name="" > <label >suntao</label> </li>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
<ul class="wlist mr40" >
|
||||
<li><a href="#">下一页</a></li>
|
||||
<li><a href="#">...</a></li>
|
||||
<li><a href="#">2</a></li>
|
||||
<li class="wlist_select" ><a href="#">1</a></li>
|
||||
<li><a href="#">上一页</a></li>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
<ul class="rolebox mb10 mt10">
|
||||
<li class="fb">角色: </li>
|
||||
<li ><input class="fl" type="checkbox" name="" checked=""> <label >Manager</label> </li>
|
||||
<li ><input type="checkbox" name="" > <label >Developer</label> </li>
|
||||
<li ><input type="checkbox" name="" > <label >Reporter</label> </li>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
<a href="#" class="member_btn">新增成员</a>
|
||||
</div>
|
||||
</div><!-- 右边 end-->
|
||||
<%= render :partial => "course_members" %>
|
||||
</div><!---成员结束-->
|
||||
</div><!--talknew end-->
|
||||
<div class="cl"></div>
|
|
@ -103,6 +103,7 @@ a:hover.grey_btn{ background:#717171; color:#fff;}
|
|||
.f_14{ font-size:14px;}
|
||||
.c_dblue{ color:#3e6d8e;}
|
||||
.w90{width:90px;}
|
||||
.w40{width:40px;}
|
||||
.ml10{margin-left:10px;}
|
||||
.resource{ width:670px;}
|
||||
.re_top{width:660px; height:40px; background:#eaeaea; padding:5px;}
|
||||
|
@ -240,6 +241,7 @@ a:hover.tijiao{ background:#0f99a9;}
|
|||
.members_left ul li{ height:30px; border-bottom:1px solid #E4E4E4; width:410px; padding-top:10px; }
|
||||
.members_left ul li a{ float:left; text-align:center;}
|
||||
.members_left ul li span{ float:left; text-align:center; color:#484747;}
|
||||
|
||||
.w150{ text-align:center; width:150px;}
|
||||
.f_b{ font-weight: bold;}
|
||||
.members_right label{ margin-left:15px;}
|
||||
|
|
Loading…
Reference in New Issue