2014-12-09 15:16:43 +08:00
|
|
|
<script type=" text/javascript" charset="utf-8">
|
|
|
|
function validate_groupname(value1) {
|
|
|
|
|
|
|
|
if(value1.length > 20) {
|
|
|
|
alert('<%= l(:label_limit_groupname) %>');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function checkclass(value) {
|
|
|
|
|
|
|
|
for(var i = 0; i < document.getElementsByName("check_group_name").length; i++) {
|
|
|
|
if(document.getElementsByName("check_group_name")[i].id == value) {
|
|
|
|
document.getElementById(value).className = "selected";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
document.getElementsByName("check_group_name")[i].className = "classbox";
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function validate_groupname_null(value1) {
|
|
|
|
value1 = value1.trim();
|
|
|
|
if(value1.length == 0 ) {
|
|
|
|
alert('<%= l(:label_limit_groupname_null) %>');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function validate_update(name) {
|
|
|
|
value1 = document.getElementById(name).value;
|
|
|
|
validate_groupname(value1);
|
|
|
|
|
|
|
|
}
|
|
|
|
function validate_add_group() {
|
|
|
|
value1 = document.getElementById('group_name').value;
|
|
|
|
validate_groupname(value1);
|
|
|
|
validate_groupname_null(value1);
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
2014-12-02 14:41:36 +08:00
|
|
|
<%= stylesheet_link_tag 'course_group', :media => 'all' %>
|
2014-12-03 19:17:10 +08:00
|
|
|
<script type="text/javascript" src="javascripts/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js"></script>
|
2014-12-02 14:41:36 +08:00
|
|
|
<div class="st_list">
|
|
|
|
<div class="st_search">
|
|
|
|
<span class="f_l"><%= @subPage_title %></span>
|
2014-12-05 23:34:16 +08:00
|
|
|
|
2014-12-02 14:41:36 +08:00
|
|
|
</div>
|
2014-12-03 19:17:10 +08:00
|
|
|
<div class="cl"></div>
|
2014-12-05 23:34:16 +08:00
|
|
|
<% if @subPage_title == l(:label_student_list) %>
|
2014-12-04 19:09:10 +08:00
|
|
|
<div class="st_addclass" id = "st_groups">
|
2014-12-03 19:17:10 +08:00
|
|
|
<%= render :partial => 'groups_name', locals: {:course_groups => @course_groups} %>
|
|
|
|
</div>
|
2014-12-05 23:34:16 +08:00
|
|
|
<% end %>
|
2014-12-03 19:17:10 +08:00
|
|
|
|
|
|
|
<div class="cl"></div>
|
2014-12-04 19:09:10 +08:00
|
|
|
|
2014-12-03 19:17:10 +08:00
|
|
|
<div class="member_content" id = "member_content">
|
2014-12-02 14:41:36 +08:00
|
|
|
<%= error_messages_for 'member' %>
|
|
|
|
<%= render :partial => @render_file, :locals => {:members => @members} %>
|
|
|
|
</div>
|
2014-06-12 14:57:25 +08:00
|
|
|
</div>
|
|
|
|
|