educoder/app/views/homework_common/setting.html.erb

123 lines
4.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="edu-class-container">
<p class="mb10">
<i class="fa fa-map-marker mr5 color-grey"></i>
<%= link_to '班级首页', course_path(@course) %>
> <%= link_to '作业列表', homework_common_index_path(:course => @course.id) %> > #<%= get_hw_index(@homework, true) %>
</p>
<div class="edu-con-top clearfix">
<p class="ml15 color-grey fl">
<% if !@homework.is_public %>
<i class="fa fa-lock mr5"></i>
<% end %>
<%= @homework.name %></p>
<%= link_to '作业详情', student_work_index_path(:homework => @homework.id), :class => 'fr font-12 mr15 color-blue mt3' %>
</div>
<div class="edu-con-bg01 mt15" id="homework_publish_setting">
<% if @is_new && @is_teacher %>
<div class="none" id="show_publish_setting">
<%= render :partial => 'show_publish_setting' %>
</div>
<div id="edit_publish_setting">
<%= render :partial => 'edit_publish_setting' %>
</div>
<% else %>
<div id="show_publish_setting">
<%= render :partial => 'show_publish_setting' %>
</div>
<div class="none" id="edit_publish_setting">
<%= render :partial => 'edit_publish_setting' %>
</div>
<% end %>
</div>
<% if @homework.homework_type != 4 %>
<div class="edu-con-bg01 mt15" id="homework_late_setting">
<% if @is_empty %>
<div class="edu-con-top clearfix mb15 homework_setting">
<p class="ml15 fl">补交设置</p>
<span class="fr color-red none mr15"><%= @is_teacher ? '请先设置发布时间' : '还未设置,暂时无法查看' %></span>
</div>
<% else %>
<div id="show_late_setting">
<%= render :partial => 'show_late_setting' %>
</div>
<div class="none" id="edit_late_setting">
<%= render :partial => 'edit_late_setting' %>
</div>
<% end %>
</div>
<div class="edu-con-bg01 mt15" id="homework_anon_setting">
<% if @is_empty %>
<div class="edu-con-top clearfix mb15 homework_setting">
<p class="ml15 fl">匿评设置</p>
<span class="fr color-red none mr15"><%= @is_teacher ? '请先设置发布时间' : '还未设置,暂时无法查看' %></span>
</div>
<% else %>
<div id="show_anon_setting">
<%= render :partial => 'show_anon_setting' %>
</div>
<div class="none" id="edit_anon_setting">
<%= render :partial => 'edit_anon_setting' %>
</div>
<% end %>
</div>
<% end %>
<div class="edu-con-bg01 mt15" id="homework_score_setting">
<% if @homework.homework_type == 4 %>
<div class="edu-con-top clearfix mb15">
<p class="ml15 fl">评分设置</p>
</div>
<div class="ml30 mr30">
<div class="clearfix">
<ul>
<li class="clearfix">
<label class="panel-form-label fl mr10">最终成绩组成</label>
</li>
<li class="clearfix">
<label class=" panel-form-label fl mr10">系统评分</label>
<input type="text" disabled class="fl task-form-15 task-height-40 panel-box-sizing" value="100%" placeholder="100%" />
<div class="popup_tip_box fontGrey2" style="right:-15px; top:0px;width:405px;">
<em></em>
<span></span>
<p>系统评分是根据学生的任务完成情况,按照百分比计算 <br/>
例如实训任务5关学生A完成3关则最终成绩为 3 / 5 * 100 = 60分 <br/>
注意:学生完成实训后,必须关联实训项目,否则成绩为零
</p>
</div>
</li>
</ul>
</div>
</div>
<% else %>
<% if @is_empty %>
<div class="edu-con-top clearfix mb15 homework_setting">
<p class="ml15 fl">评分设置</p>
<span class="fr color-red none mr15"><%= @is_teacher ? '请先设置发布时间' : '还未设置,暂时无法查看' %></span>
</div>
<% else %>
<div id="show_score_setting">
<%= render :partial => 'show_score_setting' %>
</div>
<div class="none" id="edit_score_setting">
<%= render :partial => 'edit_score_setting' %>
</div>
<% end %>
<% end %>
</div>
<div class="edu-con-bg01 mt15" id="homework_public_setting">
<% if @is_empty %>
<div class="edu-con-top clearfix mb15 homework_setting">
<p class="ml15 fl">公开设置</p>
<span class="fr color-red none mr15"><%= @is_teacher ? '请先设置发布时间' : '还未设置,暂时无法查看' %></span>
</div>
<% else %>
<div id="show_public_setting">
<%= render :partial => 'show_public_setting' %>
</div>
<div class="none" id="edit_public_setting">
<%= render :partial => 'edit_public_setting' %>
</div>
<% end %>
</div>
</div>