2014-12-05 23:34:16 +08:00
|
|
|
<div style="margin-left: 15px">
|
2014-12-05 16:03:41 +08:00
|
|
|
<% if User.current.logged? && User.current.member_of_course?(@course) && @group %>
|
2014-12-04 22:02:10 +08:00
|
|
|
<% if !@canShowCode %>
|
|
|
|
<%= join_in_course_group(@course.course_groups,@group, User.current) %>
|
|
|
|
<% end %>
|
2014-12-05 23:34:16 +08:00
|
|
|
<span style="font-size: 18px; float: left; margin-right: 35px"><%= l(:label_current_group)%>: <%= @group.name %></span>
|
|
|
|
<% end %>
|
2014-12-06 16:27:58 +08:00
|
|
|
<% if @subPage_title && @subPage_title == l(:label_student_list)%>
|
2014-12-06 16:49:38 +08:00
|
|
|
<% if @subPage_title == l(:label_student_list) %>
|
2014-12-06 11:00:15 +08:00
|
|
|
<%= form_tag( searchmembers_course_path(@course), method: 'get',:class => "f_l",:style => "margin-left: 5px; ",:remote=>true) do %>
|
|
|
|
<%= text_field_tag 'name', params[:name], name: "name", :class => 'f_1', :style => "height:15px"%>
|
2014-12-09 14:57:10 +08:00
|
|
|
<% if @group %>
|
2014-12-09 15:16:43 +08:00
|
|
|
<%= hidden_field "search_group_id", params[:search_group_id],:value => "#{@group.id}", name: 'search_group_id' %>
|
|
|
|
<%= submit_tag l(:label_search_member_in_group), :name => "ingroup",:class => "f_2"%>
|
2014-12-09 14:57:10 +08:00
|
|
|
<% end %>
|
2014-12-09 15:16:43 +08:00
|
|
|
<%= submit_tag l(:label_search_member_in_course), :name => 'incourse',:onclick => "checkclass('group_name_0')",:class => "f_2"%>
|
2014-12-06 11:00:15 +08:00
|
|
|
<%#= link_to l(:label_search),'' , :class => 'f_2' %>
|
|
|
|
<% end %>
|
2014-12-05 23:34:16 +08:00
|
|
|
<% end %>
|
2014-12-04 22:02:10 +08:00
|
|
|
|
|
|
|
</div>
|
2014-12-05 23:34:16 +08:00
|
|
|
<div class="cl"></div>
|
2014-06-12 14:57:25 +08:00
|
|
|
<% if members.any? %>
|
2014-12-05 11:27:51 +08:00
|
|
|
<% if @result_count %>
|
|
|
|
<p style="font-size: 18px;"><%= l(:label_search_member_count) %><%= @result_count %><%= l(:label_member_people) %></p>
|
|
|
|
<% end %>
|
2014-06-12 14:57:25 +08:00
|
|
|
<% members.each do |member| %>
|
|
|
|
<div class="well">
|
|
|
|
<% next if member.new_record? %>
|
|
|
|
<% unless member.created_on.nil? %>
|
|
|
|
<%= content_tag "p", "#{format_date(member.created_on)}#{l(:label_member_since)}", :class => "float_right member_since" %>
|
|
|
|
<% end %>
|
|
|
|
<%= member.user.nil? ? '' : (image_tag(url_to_avatar(member.user), :class => 'avatar')) %>
|
2014-06-27 16:44:53 +08:00
|
|
|
<% if @canShowCode %>
|
|
|
|
<%= content_tag "div", link_to(member.user.show_name, user_path(member.user)), :class => "nomargin avatar_name" %>
|
|
|
|
<% else %>
|
|
|
|
<%= content_tag "div", link_to(member.user.name, user_path(member.user)), :class => "nomargin avatar_name" %>
|
|
|
|
<% end %>
|
2014-06-12 14:57:25 +08:00
|
|
|
<!--teacher's code disapeared moified by huang-->
|
|
|
|
|
2014-09-30 11:11:19 +08:00
|
|
|
<% if @canShowCode %>
|
2014-09-29 16:49:47 +08:00
|
|
|
<%= content_tag "p", "#{l(:label_bidding_user_studentcode)}#{' : '}#{member.user.user_extensions.student_id}", :class => "nomargin avatar_name" %>
|
2014-06-12 14:57:25 +08:00
|
|
|
<% end %>
|
|
|
|
<div class ="clear avatar_name">
|
|
|
|
<p>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= call_hook(:view_projects_settings_members_table_row, { :course => @course, :member => member}) %>
|
|
|
|
</div>
|
|
|
|
<% end; reset_cycle %>
|
|
|
|
<div class="pagination"><%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %></div>
|
|
|
|
<% else %>
|
|
|
|
<p class="nodata">
|
|
|
|
<%= l(:label_no_data) %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|