From 6416b010378cabc3f13b3b38710b33618b4100ae Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 4 Mar 2016 14:28:06 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E9=87=8C=E7=9A=84?= =?UTF-8?q?=E2=80=9C=E8=AF=BE=E7=A8=8B=E4=BD=9C=E4=B8=9A=E2=80=9D=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E2=80=9C=E4=BD=9C=E4=B8=9A=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/locales/courses/zh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/locales/courses/zh.yml b/config/locales/courses/zh.yml index 19b979d97..b59538bc9 100644 --- a/config/locales/courses/zh.yml +++ b/config/locales/courses/zh.yml @@ -15,7 +15,7 @@ zh: label_course_new: 新建课程 label_course_name: 课程名称 - label_homework: 课程作业 + label_homework: 作业 label_course_news: 课程通知 label_course_mail_news_reply: 课程通知回复 label_main_teacher: 主讲教师 From d2920c64eaacdb9579d38a57b3f8f500148bb22e Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 4 Mar 2016 15:12:03 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E9=A2=98=E5=BA=93=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E5=8F=91=E9=80=81=E5=88=B0=E8=AF=BE=E7=A8=8B=E5=90=8E=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_homework_post_notice.html.erb | 12 ++++++++++++ app/views/users/send_homework_to_course.js.erb | 10 +++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 app/views/users/_homework_post_notice.html.erb diff --git a/app/views/users/_homework_post_notice.html.erb b/app/views/users/_homework_post_notice.html.erb new file mode 100644 index 000000000..a9b153854 --- /dev/null +++ b/app/views/users/_homework_post_notice.html.erb @@ -0,0 +1,12 @@ +
+
+

+ 题目已发送到目标课程的作业列表,但需要您设置发布和截止时间,以激活相应作业,谢谢! +

+ +
+
\ No newline at end of file diff --git a/app/views/users/send_homework_to_course.js.erb b/app/views/users/send_homework_to_course.js.erb index 491156876..e4e8e84ab 100644 --- a/app/views/users/send_homework_to_course.js.erb +++ b/app/views/users/send_homework_to_course.js.erb @@ -1 +1,9 @@ -$("#subject_count_homework_<%=@homework.id %>").html(<%= @homework.quotes %>); \ No newline at end of file +$("#subject_count_homework_<%=@homework.id %>").html(<%= @homework.quotes %>); +$("#ajax-modal").html("<%=escape_javascript(render :partial => 'homework_post_notice') %>"); +showModal('ajax-modal', '500px'); +$('#ajax-modal').siblings().remove(); +$('#ajax-modal').before("" + + ""); +$('#ajax-modal').parent().css("top","50%").css("left","50%"); +$('#ajax-modal').parent().addClass("popbox").addClass("resourceUploadPopup"); +$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px"); \ No newline at end of file From a5cb3d5e6a4daf1f636c871dd78155f21c3d0b43 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 4 Mar 2016 15:14:38 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E4=BD=9C=E5=93=81?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E8=BE=93=E5=85=A5=E6=A1=86=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E2=80=9C=E8=AF=B7=E8=BE=93=E5=85=A5=E4=BD=9C=E5=93=81=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E2=80=9D=E3=80=81=E2=80=9C=E8=AF=B7=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E4=BD=9C=E5=93=81=E6=8F=8F=E8=BF=B0=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/student_work/edit.html.erb | 4 ++-- app/views/student_work/new.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/student_work/edit.html.erb b/app/views/student_work/edit.html.erb index f72faaac2..56636a48e 100644 --- a/app/views/student_work/edit.html.erb +++ b/app/views/student_work/edit.html.erb @@ -41,12 +41,12 @@ <%=hidden_field_tag 'group_member_ids', params[:group_member_ids], :value=>str %> <% end %>
- +

- +