设置匿评属性静态页面

This commit is contained in:
sw 2015-09-23 13:54:36 +08:00
parent 193eb0cb6e
commit 9d474d6528
4 changed files with 61 additions and 6 deletions

View File

@ -0,0 +1,44 @@
<div class="markPopup" id="popbox02">
<span class="uploadText">匿评设置</span>
<div class="cl"></div>
<div class="mt15">
<span class="f14 fontGrey3 fl mt5">开启匿评</span>
<div class="calendar_div fl ml10">
<input type="text" name="evaluation_start" id="evaluation_start_time" placeholder="开启匿评日期" class="InputBox fl W120 calendar_input" readonly="readonly"/>
<%= calendar_for('evaluation_start_time')%>
</div>
</div>
<div class="cl"></div>
<div class="mt15">
<span class="f14 fontGrey3 fl mt5">关闭匿评</span>
<div class="calendar_div fl ml10">
<input type="text" name="evaluation_end" id="evaluation_end_time" placeholder="关闭匿评日期" class="InputBox fl W120 calendar_input" readonly="readonly" />
<%= calendar_for('evaluation_end_time')%>
</div>
</div>
<div class="cl"></div>
<div class="mt15">
<span class="f14 fontGrey3 mr10 fl mt5">匿评人数</span>
<input type="text" name="" placeholder="默认匿评人数为3" class="markInput fl" />
</div>
<div class="cl"></div>
<div class="mb20">
<span class="f14 fontGrey3 mr10">禁用匿评</span>
<input type="checkbox" />
<span class="f12 c_red ml10">禁用后将无法进行学生互评</span>
</div>
<div class="cl"></div>
<div>
<div class="courseSendSubmit"><a href="javascript:void(0);" class="sendSourceText">确定</a></div>
<div class="courseSendCancel">
<a href="javascript:void(0);" class="sendSourceText linkGrey6" onclick="clickCanel();">取消</a>
</div>
</div>
<div class="cl"></div>
</div>

View File

@ -60,6 +60,9 @@
<li>
<%= link_to(l(:label_bid_respond_delete), homework_common_path(homework_common,:is_in_course => 0),:method => 'delete', :confirm => l(:text_are_you_sure), :class => "postOptionLink") %>
</li>
<li>
<a href="javascript:void(0)" class="postOptionLink" onclick="set_evaluation_att();">匿评设置</a>
</li>
<li>
<%= homework_anonymous_comment homework_common %>
</li>

View File

@ -8,8 +8,13 @@
$("#homework_editor").toggle();
}
function checkAllBox(doc){
function set_evaluation_att(){
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'homework_common/set_evalutation_att') %>');
showModal('ajax-modal', '350px');
$('#ajax-modal').siblings().remove();
$('#ajax-modal').before("<span style='float: right;cursor:pointer;'>" +
"<a href='javascript:' onclick='clickCanel();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
$('#ajax-modal').parent().css("top","25%").css("left","35%").css("position","fixed");
}
</script>
<div class="homepageRightBanner mb10">

View File

@ -58,6 +58,12 @@ h4{ font-size:14px; color:#3b3b3b;}
.clearfix{clear:both;zoom:1}
.break_word{ word-break:break-all; word-wrap: break-word;}
.white_space{white-space:nowrap;}
.fontGrey3 {color:#484848;}
a.linkGrey6 {color:#484848 !important;}
a.linkGrey6:hover {color:#ffffff !important;}
.markPopup {width:290px; height:auto; padding:5px 0px 15px 15px; background-color:#ffffff; z-index:1000;}
.markInput {margin-bottom:10px; outline:none; border:1px solid #e6e6e6; height:30px; width:140px; color:#3d3c3c;}
.markPercentage {margin:10px 0; border:1px solid #e6e6e6; width:70px; height:30px; outline:none; font-size:12px; color:#3d3c3c;}
/* Spacing */
.ml2{ margin-left:2px;}
@ -527,7 +533,7 @@ a.homepageWhite:hover {color:#a1ebff}
a.newsGrey {color:#4b4b4b;}
a.newsGrey:hover {color:#000000;}
a.newsRed {color:red;}
a.newsRed:hovor {color:#888888;}
a.newsRed:hover {color:#888888;}
a.replyGrey {color:#888888; display:inline-block;}
a.replyGrey:hover {color:#4b4b4b;}
a.replyGrey1 {color:#888888;}
@ -768,9 +774,6 @@ div.modal {
.ui-widget {
font-family: Verdana, sans-serif;
font-size: 1.1em;
width: 200px;
height: 14px;
background: #e2e2e2;
}
.ui-dialog .ui-dialog-content {
position: relative;