<ul class="hwork_new_basic mb10">
  <li>
    <label class="label02 mb20">
      <span class="c_red">*</span>
      &nbsp;<%= l(:field_name)%>：&nbsp;
    </label>
    <input  type="text" name="homework_common[name]" id="homework_name" class="w548 h26  fl" maxlength="<%= Bid::NAME_LENGTH_LIMIT%>" onkeyup="regex_homework_name();" value="<%= homework.name%>" >
    <p id="homework_name_span" class="c_red ml110"></p>
  </li>
  <div class="cl"></div>
  <li >
    <label class="label02 ">&nbsp;&nbsp;&nbsp;<%= l(:field_quote)%>：&nbsp;</label>
    <!--<textarea  name="" placeholder="请在此填入作业的要求及评分依据"  class=" w548 h150 mb10 fl"  ></textarea>-->
    <% if edit_mode %>
        <%= f.kindeditor :description,:width=>'83%',:editor_id => 'homework_description_editor',:owner_id => homework.id,:owner_type =>OwnerTypeHelper::HOMEWORKCOMMON %>
    <% else %>
        <%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %>
        <%= f.kindeditor :description,:width=>'83%',:editor_id => 'homework_description_editor' %>
    <% end %>
  </li>
  <div class="cl"></div>
  <li class="mt10">
    <label class="label02">&nbsp;&nbsp;附件：&nbsp;</label>
    <%= render :partial => 'attachments/new_form', :locals => {:container => homework} %>
  </li>
  <div class="cl"></div>
  <li class="fl">
    <label class="label02">
      <span class="c_red">*</span>
      &nbsp;<%= l(:label_limit_time)%>：&nbsp;
    </label>
    <input  type="text" name="homework_common[end_time]" id="homework_end_time" class="hwork_input02 fl" readonly="readonly" value="<%= homework.end_time%>" >
    <%= calendar_for('homework_end_time')%>
    <div class="cl"></div>
  </li>
  <li class="fl ml100" style="display: none;">
    <label class="label02">&nbsp;发布日期：&nbsp;</label>
    <input  type="text" name="homework_common[publish_time]" id="homework_publish_time" class="hwork_input02 fl" readonly="readonly" value="<%= homework.publish_time%>" >
    <%= calendar_for('homework_publish_time')%>
    <div class="cl"></div>
  </li>
  <div class="cl"></div>
</ul><!--hwork_new_basic end--->
<div class="hwork_new_set" >
  <p class="fl ml20 f14 mb10 c_orange">基本规则设置（总分为100分）</p>
  <div class="cl"></div>
    <ul class="ml10">
      <li style="display: none;">
        <label class="label02">迟交扣分：&nbsp;</label>
        <%= select_tag :late_penalty,options_for_select(late_penalty_option,homework.late_penalty), {:class => "fl mb10 h26 w70"}  %>
        <span class="fl mt5">&nbsp;分</span>
        <div class="cl"></div>
      </li>
      <li >
        <label class="label02" >是否匿评：&nbsp;</label>
        <%= f.check_box :homework_type, :class => "mb10 mt5 fl" %>
        <div class="cl"></div>
      </li>
      <li >
        <label class="label02">评分比例：&nbsp;</label>
        <%= select_tag :ta_proportion,options_for_select(ta_proportion_option,homework.homework_detail_manual.ta_proportion), {:class => "fl mb10 h26 w70"}  %>
        <span class="ml5 fl mt5">×&nbsp;教辅评分</span>
        <span class="ml5 fl mt5">&nbsp;&nbsp;+&nbsp;&nbsp;</span>
        <input type="text" id="student_proportion" value="<%= (100 - homework.homework_detail_manual.ta_proportion* 100).to_i%>%" class="fl mb10 h26 w70" readonly>
        <span class="ml5 fl mt5">×&nbsp;匿评得分</span>
        <span class="ml5 fl mt5">=&nbsp;学生得分</span>
        <div class="cl"></div>
      </li>
      <li >
        <label class="label02" >&nbsp;&nbsp;</label>
        <span class=" fl  c_red">如果教师对学生作品进行了评分，则教师评分为学生最终得分。</span>
        <div class="cl"></div>
      </li>
    </ul>
</div><!--hwork_new_set end-->

<div class="hwork_new_set" id="evaluation_setting" >
  <p class="fl ml20 f14 mb10 c_orange">学生互评设置</p>
  <div class="cl"></div>
  <ul class="ml10">
    <li style="display: none;">
      <label class="label02">互评启动时间：&nbsp;</label>
      <input  type="text" name="evaluation_start" id="evaluation_start_time" class="hwork_input02 fl" readonly="readonly" value="<%= homework.homework_detail_manual.evaluation_start%>" >
      <%= calendar_for('evaluation_start_time')%>
      <div class="cl"></div>
    </li>
    <li style="display: none;">
      <label class="label02">互评结束时间：&nbsp;</label>
      <input  type="text" name="evaluation_end" id="evaluation_end_time" class="hwork_input02 fl" readonly="readonly" value="<%= homework.homework_detail_manual.evaluation_end%>" >
      <%= calendar_for('evaluation_end_time')%>
      <div class="cl"></div>
    </li>
    <li >
      <label class="label02">匿评分配数：&nbsp;</label>
      <input  type="text" name="evaluation_num" id="evaluation_num" class=" hwork_input02 fl"  value="<%= homework.homework_detail_manual.evaluation_num%>" maxlength="2" onkeyup="regex_evaluation_num()">
      <p class="ml5 fl mt5" id="evaluation_num_notice">每个学生将收到<span class="c_red">&nbsp;3&nbsp;</span>份待匿评作品</p>
      <div class="cl"></div>
    </li>

    <li style="display: none;">
      <label class="label02">缺评扣分：&nbsp;</label>
      <%= select_tag :absence_penalty,options_for_select(absence_penalty_option,homework.homework_detail_manual.absence_penalty), {:class => "fl mb10 h26 w70"}  %>
      <span class="fl mt5">&nbsp;分</span>
      <p class="ml5 fl mt5">学生漏评1个作品将扣<span class="c_red" id="absence_penalty_notice">&nbsp;2&nbsp;</span>分</p>
      <div class="cl"></div>
    </li>
  </ul> <!-- h1 end--->
</div><!--hwork_new_set end-->