From 046536230cf2bcde4eea5d959e2f2138f0765af0 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Mon, 30 Mar 2015 10:47:23 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=BE=E7=A8=8B=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE=E7=95=8C=E9=9D=A2=E3=80=81=E6=88=90=E5=91=98=E7=9A=84?=
=?UTF-8?q?=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF=E4=BB=A5=E5=8F=8A=E7=9B=B8?=
=?UTF-8?q?=E5=85=B3js?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/courses/settings.html.erb | 161 +++++++++++++++++++---------
public/javascripts/course.js | 10 ++
2 files changed, 121 insertions(+), 50 deletions(-)
diff --git a/app/views/courses/settings.html.erb b/app/views/courses/settings.html.erb
index 43261f4e2..1562bedd5 100644
--- a/app/views/courses/settings.html.erb
+++ b/app/views/courses/settings.html.erb
@@ -2,59 +2,120 @@
<%= l(:label_course_modify_settings)%>
-
- <%= labelled_form_for @course do |f| %>
- -
- <%= render :partial => "avatar/new_avatar_form", :locals => {source: @course} %>
+
+
+
+
+
+
+
添加成员
+
+
搜索
-
-
-
-
-
- 课程名称不能为空
-
-
-
-
-
-
-
-
-
-
-
-
- <%= select_tag :time,options_for_select(course_time_option(@course.time),@course.time), {} %>
- <%= select_tag :term,options_for_select(course_term_option,@course.term || cur_course_term),{} %>
-
-
-
-
-
-
+
- 学生或其他成员申请加入课程时候需要使用该口令,该口令可以由老师在课堂上公布。
-
-
-
-
-
+
-
-
-
-
- id="course_is_public" name="course[is_public]" type="checkbox">
- (打钩为公开,不打钩则不公开,若不公开,仅课程成员可见该课程。)
+
-
-
-
-
- id="course_open_student" name="course[open_student]" type="checkbox" style="margin-left: 1px;"/>
- (打钩为"学生列表公开",不打钩为不公开,若不公开,则课程外部人员看不到学生列表)
-
-
-
-
- 提交
- <%= link_to l(:button_cancel), course_path(@course), :class => "blue_btn grey_btn fl c_white" %>
-
-
- <% end %>
-
+
新增成员
+
+
+
\ No newline at end of file
diff --git a/public/javascripts/course.js b/public/javascripts/course.js
index e49ecd828..4ca2c3403 100644
--- a/public/javascripts/course.js
+++ b/public/javascripts/course.js
@@ -1,3 +1,13 @@
+//配置课程信息
+function course_setting(id)
+{
+ //alert(id);
+ $('#tb_'+id).removeClass().addClass("hwork_hovertab");
+ $('#tbc_0'+id).removeClass().addClass("dis");
+ $('#tb_'+(3-id)).removeClass().addClass("hwork_normaltab");
+ $('#tbc_0'+(3-id)).removeClass().addClass("undis");
+}
+
///////////////////////////////////////////////////////////////
//添加分班
function add_group(url,course_id) {