添加分班
This commit is contained in:
parent
e7c0ff7226
commit
c255325300
|
@ -24,7 +24,8 @@
|
||||||
<ul class="st_box_top">
|
<ul class="st_box_top">
|
||||||
<li class="ml50" style="padding-right: 5px;"><a href="">姓名</a></li>
|
<li class="ml50" style="padding-right: 5px;"><a href="">姓名</a></li>
|
||||||
<li class="ml10" style="padding-right: 15px;"><a href="">学号</a></li>
|
<li class="ml10" style="padding-right: 15px;"><a href="">学号</a></li>
|
||||||
<li class="ml358">
|
<li style="padding-right: 55px; margin-left: 260px;"><a href="">分班</a></li>
|
||||||
|
<li style="margin-left: 25px;">
|
||||||
<%= link_to '作业积分', member_score_sort_course_path(:sort_by => (@score_sort_by == "desc" ? "asc" : "desc"), :group_id => (@group ? @group.id : 0),:search_name => (@search_name ? @search_name : nil)) ,:result => members,method: 'get', remote: true%>
|
<%= link_to '作业积分', member_score_sort_course_path(:sort_by => (@score_sort_by == "desc" ? "asc" : "desc"), :group_id => (@group ? @group.id : 0),:search_name => (@search_name ? @search_name : nil)) ,:result => members,method: 'get', remote: true%>
|
||||||
<% if @score_sort_by == 'desc' %>
|
<% if @score_sort_by == 'desc' %>
|
||||||
<a id="pic" href="javascript:" class= "st_down"></a>
|
<a id="pic" href="javascript:" class= "st_down"></a>
|
||||||
|
@ -58,11 +59,26 @@
|
||||||
<li><%= link_to("#{l(:label_bidding_user_studentcode)}:<span >#{member.user.user_extensions.student_id}</span>".html_safe,user_path(member.user)) %></li>
|
<li><%= link_to("#{l(:label_bidding_user_studentcode)}:<span >#{member.user.user_extensions.student_id}</span>".html_safe,user_path(member.user)) %></li>
|
||||||
<% end%>
|
<% end%>
|
||||||
</ul>
|
</ul>
|
||||||
|
<% if User.current.allowed_to?(:as_teacher, @course) || User.current.admin? %>
|
||||||
|
<div class="select-class-option fl" style="margin-left: 105px;"><span style="width: 100px; text-align: center; float: left;" class="hidden">向日葵班</span>
|
||||||
|
<a style="display: inline-block;" href="javascript:void(0)" class="pic_edit2 ml5"></a></div>
|
||||||
|
<select class="w125 undis class-edit fl" style="margin-left: 105px;">
|
||||||
|
<option value="1" selected="selected">向日葵班</option>
|
||||||
|
<option value="2">学前班</option>
|
||||||
|
<option value="3">幼儿园</option>
|
||||||
|
<option value="4">小学</option>
|
||||||
|
<option value="5">初中</option>
|
||||||
|
</select>
|
||||||
|
<% else %>
|
||||||
|
<div class="select-class-option fl" style="margin-left: 105px;">
|
||||||
|
<span style="width: 100px; text-align: center; float: left;" class="hidden"><%= %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
<%= link_to format("%0.2f",member.score.nil? ? 0 : member.score.to_s), {
|
<%= link_to format("%0.2f",member.score.nil? ? 0 : member.score.to_s), {
|
||||||
:action => 'show_member_score',
|
:action => 'show_member_score',
|
||||||
:member_id => member.id,
|
:member_id => member.id,
|
||||||
:remote => true},
|
:remote => true},
|
||||||
:class => 'ml258 c_red' %>
|
:class => 'ml25 c_red' %>
|
||||||
<span class="fr mr15 c_grey"><%= format_date(member.created_on)%></span>
|
<span class="fr mr15 c_grey"><%= format_date(member.created_on)%></span>
|
||||||
<%= call_hook(:view_projects_settings_members_table_row, { :course => @course, :member => member}) %>
|
<%= call_hook(:view_projects_settings_members_table_row, { :course => @course, :member => member}) %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -79,3 +95,37 @@
|
||||||
</p>
|
</p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
/*$(".select-class-option").mouseover(function(){
|
||||||
|
$(this).children(".pic_edit2").css("display","inline-block");
|
||||||
|
});
|
||||||
|
$(".select-class-option").mouseout(function(){
|
||||||
|
$(this).children(".pic_edit2").css("display","none");
|
||||||
|
});*/
|
||||||
|
$(".pic_edit2").click(function(){
|
||||||
|
$(this).parent().hide();
|
||||||
|
$(this).parent().next().show();
|
||||||
|
});
|
||||||
|
$(".class-edit").blur(function(){
|
||||||
|
$(this).hide();
|
||||||
|
$(this).prev().show();
|
||||||
|
var editValue = $(this).children("option:selected").text();
|
||||||
|
$(this).prev().children(":first").text(editValue);
|
||||||
|
});
|
||||||
|
function stopPropagation(e) {
|
||||||
|
if (e.stopPropagation)
|
||||||
|
e.stopPropagation();
|
||||||
|
else
|
||||||
|
e.cancelBubble = true;
|
||||||
|
};
|
||||||
|
$(document).bind('click',function(){
|
||||||
|
$('.class-edit').css('display','none');
|
||||||
|
$('.select-class-option').show();
|
||||||
|
});
|
||||||
|
$('.class-edit,.pic_edit2').bind('click',function(e){
|
||||||
|
stopPropagation(e);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue