2015-04-22 11:11:51 +08:00
|
|
|
|
|
2015-04-07 12:48:47 +08:00
|
|
|
|
<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 => "courses/member" %>
|
|
|
|
|
</div>
|
|
|
|
|
</ul>
|
|
|
|
|
</div><!-- 左边-->
|
|
|
|
|
<div class="members_right">
|
|
|
|
|
<p class="c_blue fb mt10 mb5">添加成员</p>
|
|
|
|
|
<%= form_for(@member, {:as => :membership, :url => course_memberships_path(@course), :remote => true, :method => :post}) do |f| %>
|
|
|
|
|
<div class="member_search">
|
|
|
|
|
<input hidden="hidden" value="true" name="flag">
|
2015-05-06 15:01:26 +08:00
|
|
|
|
<input id="principal_search" class="member_search_input fl" type="text" placeholder="<%= l(:label_invite_trustie_user_tips)%>">
|
2015-04-07 12:48:47 +08:00
|
|
|
|
<%= javascript_tag "observeSearchfield('principal_search', null, '#{ escape_javascript autocomplete_course_memberships_path(@course, :format => 'js',:flag => true) }')" %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
|
<div id="principals_for_new_member">
|
|
|
|
|
<%= render_principals_for_new_course_members(@course) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
|
<ul class="rolebox mb10 mt10">
|
|
|
|
|
<li class="fb">
|
|
|
|
|
<%= l(:label_role_plural) %>:
|
|
|
|
|
</li>
|
|
|
|
|
<% @roles.each do |role| %>
|
|
|
|
|
<li>
|
|
|
|
|
<%= radio_button_tag 'membership[role_ids][]', role.id, role.name == "学生" || role.name == "Student" %>
|
2015-05-08 09:37:57 +08:00
|
|
|
|
<label ><%= zh_course_role(h role) %></label>
|
2015-04-07 12:48:47 +08:00
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="cl mb10"></div>
|
|
|
|
|
<a href="javascript:void(0)" class="member_btn" onclick="$('#new_membership').submit();">
|
|
|
|
|
新增成员
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<% end%>
|
2015-03-30 11:20:16 +08:00
|
|
|
|
</div><!-- 右边 end-->
|