匿评结束后不可修改作业的截止日期,作业发布后不可修改作业的发布日期

This commit is contained in:
cxt 2015-12-18 18:47:36 +08:00
parent 902570173d
commit 6a563d4256
1 changed files with 6 additions and 2 deletions

View File

@ -26,14 +26,18 @@
<% end %> <% end %>
<div class="calendar_div fl mr10"> <div class="calendar_div fl mr10">
<input type="text" name="homework_common[end_time]" id="homework_end_time" placeholder="截止日期" class="InputBox fl W120 calendar_input" readonly="readonly" value="<%= homework.end_time%>" > <input type="text" name="homework_common[end_time]" id="homework_end_time" placeholder="截止日期" class="InputBox fl W120 calendar_input" readonly="readonly" value="<%= homework.end_time%>" >
<%= calendar_for('homework_end_time')%> <% if homework.homework_detail_manual.comment_status.to_i < 3 %>
<%= calendar_for('homework_end_time')%>
<% end %>
</div> </div>
<% if edit_mode %> <% if edit_mode %>
<label class="fl c_grey f14" style="margin-top: 4px;">发布日期(可选)</label> <label class="fl c_grey f14" style="margin-top: 4px;">发布日期(可选)</label>
<% end %> <% end %>
<div class="calendar_div fl"> <div class="calendar_div fl">
<input type="text" name="homework_common[publish_time]" id="homework_publish_time" placeholder="发布日期(可选)" class="InputBox fl W120 calendar_input" readonly="readonly" value="<%= homework.publish_time%>" > <input type="text" name="homework_common[publish_time]" id="homework_publish_time" placeholder="发布日期(可选)" class="InputBox fl W120 calendar_input" readonly="readonly" value="<%= homework.publish_time%>" >
<%= calendar_for('homework_publish_time')%> <% if homework.homework_detail_manual.comment_status.to_i == 0 %>
<%= calendar_for('homework_publish_time')%>
<% end %>
</div> </div>
</div> </div>
<div class="cl"></div> <div class="cl"></div>