2014-05-17 11:15:27 +08:00
|
|
|
|
<style>
|
|
|
|
|
input[type="submit"].bid_btn {
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
width: 60px;/*modified by ming*/
|
|
|
|
|
height: 25px;
|
|
|
|
|
line-height: 19px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: rgb(0, 0, 0);
|
|
|
|
|
background: buttonface;/*url("/images/button/bg103.jpg") no-repeat scroll left top transparent;*/
|
|
|
|
|
padding: 0px 0px 4px 0px;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
border: 1px solid rgb(148, 148, 148);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
text-shadow: none;
|
|
|
|
|
margin-top: -10px;
|
|
|
|
|
/*margin-right: -4px;*/
|
|
|
|
|
}
|
|
|
|
|
input[type="button"].bid_btn {
|
|
|
|
|
width: 60px;/*modified by ming*/
|
|
|
|
|
height: 25px;
|
|
|
|
|
line-height: 19px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: rgb(0, 0, 0);
|
|
|
|
|
background: buttonface;/*url("/images/button/bg103.jpg") no-repeat scroll left top transparent;*/
|
|
|
|
|
padding: 0px 0px 4px 0px;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
border: 1px solid rgb(148, 148, 148);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
text-shadow: none;
|
|
|
|
|
margin-top: -10px;
|
|
|
|
|
margin-right: -2px;
|
|
|
|
|
}
|
|
|
|
|
textarea:focus {
|
|
|
|
|
border: #d5dee9 1px solid;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
|
function clearInfo(id, content) {
|
|
|
|
|
var text = $('#' + id);
|
|
|
|
|
if (text.val() == content) {
|
|
|
|
|
$('#' + id).val('');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function showInfo(id, content) {
|
|
|
|
|
var text = $('#' + id);
|
|
|
|
|
if (text.val() == '') {
|
|
|
|
|
$('#' + id).val(content);
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-11-03 18:34:06 +08:00
|
|
|
|
|
2014-12-02 16:21:36 +08:00
|
|
|
|
function submit1(is_teacher)
|
2014-11-03 18:34:06 +08:00
|
|
|
|
{
|
2014-12-01 15:41:49 +08:00
|
|
|
|
if($("#stars_value").val() == "0"){alert("您还没有打分");return;}
|
2014-12-02 16:21:36 +08:00
|
|
|
|
if(!is_teacher&&$("#new_form_user_message").val() == ""){alert("您还没有填写评语");return;}
|
2014-11-03 18:34:06 +08:00
|
|
|
|
$('#jours_submit').parent().submit();
|
|
|
|
|
}
|
2014-05-17 11:15:27 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<%= form_for('new_form', :remote => true, :method => :post,
|
|
|
|
|
:url => {:controller => 'homework_attach',
|
|
|
|
|
:action => 'addjours',
|
|
|
|
|
:jour_id => homework_attach.id,
|
2014-05-27 20:01:21 +08:00
|
|
|
|
:is_comprehensive_evaluation => is_comprehensive_evaluation,
|
2014-12-02 16:21:36 +08:00
|
|
|
|
:cur_page => cur_page,
|
|
|
|
|
:cur_type => cur_type,
|
2014-05-17 11:15:27 +08:00
|
|
|
|
:sta => sta}) do |f|%>
|
2014-12-01 15:41:49 +08:00
|
|
|
|
<!-- 打分 -->
|
|
|
|
|
<div class="ping_star" id="star_score">
|
|
|
|
|
<% if @is_comprehensive_evaluation == 3 || User.current == homework_attach.user%>
|
|
|
|
|
<!-- 如果是留言,或者是作业创建者进入,不显示打星 -->
|
|
|
|
|
<% else @is_comprehensive_evaluation == 2 %>
|
|
|
|
|
<!-- 学生匿评或者教师评价 -->
|
|
|
|
|
<%= l(:label_work_rating) %>:
|
|
|
|
|
<%= render :partial => 'show_star',:locals => {start_score:m_score} %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<!-- 打分js结束 -->
|
2014-05-17 11:15:27 +08:00
|
|
|
|
|
|
|
|
|
<div id = 'pre_show'>
|
|
|
|
|
<%= render :partial => 'words/pre_show', :locals => {:content => @content} %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<% if User.current.logged? %>
|
2014-11-02 13:18:59 +08:00
|
|
|
|
<%= f.text_area 'user_message', :rows => 3, :cols => 65,
|
2014-11-12 17:02:35 +08:00
|
|
|
|
:style => "resize: none;", :class => 'noline', :placeholder => l(:text_caracters_maximum,:count=>250),
|
|
|
|
|
:maxlength => 250
|
|
|
|
|
%>
|
2014-05-17 11:15:27 +08:00
|
|
|
|
<%= f.text_field :reference_user_id, :style=>"display:none"%>
|
2014-11-02 13:18:59 +08:00
|
|
|
|
<div style="float:right">
|
2014-12-02 16:21:36 +08:00
|
|
|
|
<a href="#" class="ping_sub1" id="jours_submit" onclick="submit1(<%= is_teacher%>);"><%= l(:label_submit_comments) %></a>
|
2014-11-02 13:18:59 +08:00
|
|
|
|
</div>
|
2014-05-17 11:15:27 +08:00
|
|
|
|
<% else %>
|
|
|
|
|
<div style="font-size: 14px;margin:10px;text-align: center">
|
|
|
|
|
<%= l(:label_user_login_tips) %>
|
|
|
|
|
<%= link_to l(:label_user_login_new), signin_path %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|