|
|
|
@ -1,41 +1,50 @@
|
|
|
|
|
<ul class="hwork_new_basic">
|
|
|
|
|
<li >
|
|
|
|
|
<label class="label02"><span class="c_red">*</span> 名称: </label>
|
|
|
|
|
<input type="text" name="" class="w548 h26 mb10 fl" >
|
|
|
|
|
<label class="label02 mb10">
|
|
|
|
|
<span class="c_red">*</span>
|
|
|
|
|
<%= l(:field_name)%>:
|
|
|
|
|
</label>
|
|
|
|
|
<input type="text" name="homework_common[name]" id="homework_name" class="w548 h26 fl" maxlength="255" 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 "> 作业描述及 <br />评分依据: </label>
|
|
|
|
|
<textarea name="" placeholder="请在此填入作业的要求及评分依据" class=" w548 h150 mb10 fl" ></textarea>
|
|
|
|
|
<label class="label02 "> <%= l(:field_quote)%>: </label>
|
|
|
|
|
<div style="width: 83%;float: left;">
|
|
|
|
|
<% if edit_mode %>
|
|
|
|
|
<%= f.kindeditor :description,:editor_id => 'homework_description_editor_1',: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,:editor_id => 'homework_description_editor_1' %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<li >
|
|
|
|
|
<li class="mt10">
|
|
|
|
|
<label class="label02"> 附件: </label>
|
|
|
|
|
<input type="submit" name="" value="文件浏览" class="sub_btn"> <span class=" c_grey ">-文件不超过200MB</span>
|
|
|
|
|
<%= render :partial => 'attachments/new_form', :locals => {:container => homework} %>
|
|
|
|
|
</li>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<li class="fl">
|
|
|
|
|
<label class="label02"><span class="c_red">*</span> 截止日期: </label>
|
|
|
|
|
<input type="text" name="" class="hwork_input02 fl" value="2015-04-03 12:00" >
|
|
|
|
|
<a href="javascript:void(0);" class="pic_date mt5 ml5"></a>
|
|
|
|
|
<label class="label02">
|
|
|
|
|
<span class="c_red">*</span>
|
|
|
|
|
<%= l(:label_limit_time)%>:
|
|
|
|
|
</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">
|
|
|
|
|
<li class="fl ml100" style="display: none;">
|
|
|
|
|
<label class="label02"> 发布日期: </label>
|
|
|
|
|
<input type="text" name="" class="hwork_input02 fl" value="2015-04-03 12:00" >
|
|
|
|
|
<a href="javascript:void(0);" class="pic_date mt5 ml5"></a>
|
|
|
|
|
<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>
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<li style="display: none;">
|
|
|
|
|
<label class="label02">迟交扣分: </label>
|
|
|
|
|
<select class="fl mb10 h26 w70" name="s2" >
|
|
|
|
|
<option >1</option>
|
|
|
|
|
<option selected="selected">2</option>
|
|
|
|
|
<option >3</option>
|
|
|
|
|
<option >4</option>
|
|
|
|
|
<option >5</option>
|
|
|
|
|
</select>
|
|
|
|
|
<%= select_tag :late_penalty,options_for_select(late_penalty_option,homework.late_penalty), {:class => "fl mb10 h26 w70"} %>
|
|
|
|
|
<span class="fl mt5"> 分</span>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</li>
|
|
|
|
|