新建作业时去掉发布日期和截止日期的label

This commit is contained in:
cxt 2015-11-13 17:57:32 +08:00
parent 8b2ed1d336
commit 82541cae1c
1 changed files with 7 additions and 3 deletions

View File

@ -17,12 +17,16 @@
<div class=" mt10">
<%= link_to("导入作业", user_import_homeworks_user_path(User.current.id,:select_course => defined?(select_course)),:class => "BlueCirBtn fl mr10",:remote => true) unless edit_mode%>
<label class="fl c_grey f14" style="margin-top: 4px;">截止日期:</label>
<div class="calendar_div fl">
<% if edit_mode %>
<label class="fl c_grey f14" style="margin-top: 4px;">截止日期:</label>
<% end %>
<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%>" >
<%= calendar_for('homework_end_time')%>
</div>
<label class="fl c_grey f14 ml10" style="margin-top: 4px;">发布日期(可选)</label>
<% if edit_mode %>
<label class="fl c_grey f14" style="margin-top: 4px;">发布日期(可选)</label>
<% end %>
<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%>" >
<%= calendar_for('homework_publish_time')%>