修改学生作业列表弹出框不正确
This commit is contained in:
parent
221276ba1f
commit
584dcabeaa
|
@ -230,7 +230,7 @@ class BidsController < ApplicationController
|
|||
case @bid.reward_type
|
||||
when 3
|
||||
html_title(l(:label_question_student))
|
||||
layout_file = 'base_courses'
|
||||
layout_file = 'base_homework'
|
||||
when 1
|
||||
layout_file = 'base_bids'
|
||||
else
|
||||
|
@ -307,7 +307,7 @@ class BidsController < ApplicationController
|
|||
respond_to do |format|
|
||||
if @bid.reward_type == 3
|
||||
format.html {
|
||||
render :layout => 'base_courses'
|
||||
render :layout => 'base_homework'
|
||||
}
|
||||
elsif @bid.reward_type == 1
|
||||
format.html {
|
||||
|
@ -333,7 +333,7 @@ class BidsController < ApplicationController
|
|||
respond_to do |format|
|
||||
if @bid.reward_type == 3
|
||||
format.html {
|
||||
render :layout => 'base_courses'
|
||||
render :layout => 'base_homework'
|
||||
}
|
||||
elsif @bid.reward_type == 1
|
||||
format.html {
|
||||
|
@ -361,7 +361,7 @@ class BidsController < ApplicationController
|
|||
respond_to do |format|
|
||||
if @bid.reward_type == 3
|
||||
format.html {
|
||||
render :layout => 'base_courses'
|
||||
render :layout => 'base_homework'
|
||||
}
|
||||
elsif @bid.reward_type == 1
|
||||
format.html {
|
||||
|
@ -439,7 +439,7 @@ class BidsController < ApplicationController
|
|||
respond_to do |format|
|
||||
if @bid.reward_type == 3
|
||||
format.html {
|
||||
render :layout => 'base_courses'
|
||||
render :layout => 'base_homework'
|
||||
}
|
||||
elsif @bid.reward_type == 1
|
||||
format.html {
|
||||
|
@ -533,7 +533,7 @@ class BidsController < ApplicationController
|
|||
if @bid.reward_type == 3
|
||||
format.html {
|
||||
html_title(l(:label_homework_info))
|
||||
render :layout => 'base_courses'
|
||||
render :layout => 'base_homework'
|
||||
}
|
||||
elsif @bid.reward_type == 1
|
||||
format.html {
|
||||
|
@ -565,7 +565,7 @@ class BidsController < ApplicationController
|
|||
respond_to do |format|
|
||||
if @bid.reward_type == 3
|
||||
format.html {
|
||||
render :layout => 'base_courses'
|
||||
render :layout => 'base_homework'
|
||||
}
|
||||
elsif @bid.reward_type == 1
|
||||
format.html {
|
||||
|
@ -879,7 +879,7 @@ class BidsController < ApplicationController
|
|||
#render html to prepare create submit homework
|
||||
find_bid
|
||||
find_bid
|
||||
render :layout => 'base_courses'
|
||||
render :layout => 'base_homework'
|
||||
end
|
||||
|
||||
def add_homework
|
||||
|
@ -942,12 +942,12 @@ class BidsController < ApplicationController
|
|||
@homework_type = false
|
||||
end
|
||||
@user = @bid.author
|
||||
render :layout => 'base_courses'
|
||||
render :layout => 'base_homework'
|
||||
end
|
||||
|
||||
def homework_respond
|
||||
@user = @bid.author
|
||||
render :layout => 'base_courses'
|
||||
render :layout => 'base_homework'
|
||||
end
|
||||
|
||||
def more
|
||||
|
@ -1070,7 +1070,6 @@ class BidsController < ApplicationController
|
|||
if params[:id]
|
||||
@bid = Bid.find(params[:id], :include => [{:homeworks => :user}])
|
||||
@user = @bid.author
|
||||
@course = @bid.courses.first
|
||||
end
|
||||
rescue
|
||||
render_404
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
class HomeworkAttachController < ApplicationController
|
||||
layout "base_courses"
|
||||
layout "course_base"
|
||||
include CoursesHelper
|
||||
include HomeworkAttachHelper
|
||||
helper :words
|
||||
|
|
|
@ -44,11 +44,13 @@ a:hover.tb_all{ background:#eaeaea; text-decoration:none;}
|
|||
.dis ul li.wping{margin-left:12px; }
|
||||
.dis ul li.wping a{ margin-top:18px; margin-bottom:3px; width:43px; height:23px; background:#15bccf; color:#fff; text-align:center; padding-top:3px;}
|
||||
.dis ul li.wping a:hover{ background-color:#03a1b3;}
|
||||
/*ul.wlist{ float:right; border-bottom:none; height:30px; margin-top:20px; }*/
|
||||
/*.wlist span{ border:1px solid #15bccf; padding:0 5px; margin-left:3px;}*/
|
||||
/*.wlist a{ border:1px solid #15bccf; padding:0 5px; margin-left:3px;}*/
|
||||
/*.wlist a:hover{ background:#15bccf; color:#fff; text-decoration:none;}*/
|
||||
/*.wlist_select { background-color:#64bdd9; color:#fff; padding:0 5px; margin-left:3px; border:1px solid #64bdd9;}*/
|
||||
/****翻页***/
|
||||
ul.wlist{ float:right; border-bottom:none; height:30px; margin-top:20px; }
|
||||
ul.wlist li{float: left;}
|
||||
ul.wlist li a{ border:1px solid #15bccf; padding: 1px 4px 1px 4px; margin-left:3px;}
|
||||
ul.wlist li a:hover{ background:#15bccf; color:#fff; text-decoration:none;}
|
||||
.wlist_select { background-color:#64bdd9; color:#fff; padding: 1px 5px 0px 5px; margin-left:3px;margin-top: -2px; border:1px solid #64bdd9;}
|
||||
|
||||
.code_list{ float:right; font-size:12px; color:#484848; padding:5px 3px; border-bottom:2px solid #15bccf; width:687px; }
|
||||
.code_list a{ color:#787878;}
|
||||
.fr{ float:right;}
|
||||
|
|
Loading…
Reference in New Issue