socialforge/app/views/bids/_alert_anonyoms.html.erb

30 lines
866 B
Plaintext
Raw Normal View History

<script type="text/javascript">
function clickOK()
{
hideModal("#alert_div");
$.ajax({
type: "GET",
url: "<%= bid.comment_status == 0 ? start_anonymous_comment_bid_path(bid) : stop_anonymous_comment_bid_path(bid)%>",
data: 'text',
success: function (data) {
}
});
}
function clickCanel(){hideModal("#alert_div");}
</script>
<div id="alert_div">
<% if @bid.comment_status == 0%>
<p>
目前<%= totle_size%>个学生,总共提交了<%= cur_size %>份作业,占<%= percent %>
</p>
<% elsif @bid.comment_status == 1%>
<p>
目前总共分配了目前总共分配了<%= totle_size%>份匿评作业,已评价<%= cur_size %>份作业,占<%= percent %>
</p>
<% end %>
<a onclick="clickOK();">确定</a>
<a onclick="clickCanel();">取消</a>
</div>