2015-06-25 15:55:57 +08:00
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
<%if @homework.homework_type == 1 && @homework.homework_detail_manual.comment_status != 1%>
|
|
|
|
|
$(function(){
|
|
|
|
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'student_work/new_student_work_alert') %>');
|
|
|
|
|
showModal('ajax-modal', '360px');
|
|
|
|
|
$('#ajax-modal').siblings().remove();
|
|
|
|
|
$('#ajax-modal').before("<span style='float: right;cursor:pointer;'>" +
|
|
|
|
|
"<a href='javascript:' onclick='clickCanel();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
|
|
|
|
|
$('#ajax-modal').parent().css("top","").css("left","");
|
|
|
|
|
$('#ajax-modal').parent().addClass("anonymos_work");
|
|
|
|
|
// alert("当前作业已开启匿评,您提交作品后将不会收到任何匿评作品,您的作品也不会被其他用户匿评,如需获得最终成绩,请您联系主讲老师对您的作品单独进行评分");
|
|
|
|
|
});
|
|
|
|
|
<% end%>
|
|
|
|
|
</script>
|
2015-05-20 17:53:01 +08:00
|
|
|
|
<div class="project_r_h">
|
|
|
|
|
<h2 class="project_h2">创建作品</h2>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="Newwork">
|
|
|
|
|
<div class="hwork_ctt">
|
|
|
|
|
<div class="hwork_dis" id="tbc_01">
|
2015-05-21 11:58:34 +08:00
|
|
|
|
<%= form_for(@stundet_work,
|
|
|
|
|
:html => { :multipart => true },
|
|
|
|
|
:url => {:controller => 'student_work',
|
|
|
|
|
:action => 'create',
|
|
|
|
|
:homework => @homework.id
|
|
|
|
|
}) do |f|%>
|
|
|
|
|
<div class="N_con">
|
2015-06-30 16:55:04 +08:00
|
|
|
|
<% if @homework.homework_type == 1%>
|
|
|
|
|
<div class=" c_red mb10 ml90">
|
|
|
|
|
提示:匿评作业提交的作品,作品名称和描述中不能出现真实的姓名信息
|
|
|
|
|
</div>
|
|
|
|
|
<% end%>
|
2015-05-21 11:58:34 +08:00
|
|
|
|
<p>
|
|
|
|
|
<label class="fl"><span class="c_red">*</span> 作品名称 :</label>
|
|
|
|
|
<%= f.text_field "name", :required => true, :size => 60, :class => "bo fl", :maxlength => 200, :placeholder => "作品名称", :onkeyup => "regexStudentWorkName();" %>
|
2015-07-08 09:49:24 +08:00
|
|
|
|
<% if @homework.homework_type != 2%>
|
|
|
|
|
<a href="javascript:void(0)" class="fl ml10 mt3" onclick="show_project();" >
|
|
|
|
|
项目信息
|
|
|
|
|
<img class="ml5 " src="../images/bid/pic_question.png" width="15" height="15" Title="项目是一种由用户创建的基于 网络的协作空间,能够为个人 或小组提供分布式的协同交流 和资料管理等方面的。">
|
|
|
|
|
</a>
|
|
|
|
|
<% end%>
|
2015-05-21 11:58:34 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<p id="student_work_name_span" class="c_red ml90 mb10"></p>
|
|
|
|
|
</p>
|
2015-05-20 17:53:01 +08:00
|
|
|
|
<div class="cl"></div>
|
2015-05-21 11:58:34 +08:00
|
|
|
|
<p id="about_project" class="about_project" >
|
|
|
|
|
<label class="fl"> 关联项目 :</label>
|
|
|
|
|
<%= f.select :project_id,options_for_select(user_projects_option), {},{:class => "bo02 mb10"} %>
|
|
|
|
|
</p>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<p>
|
2015-07-08 17:19:11 +08:00
|
|
|
|
<label class="fl">
|
|
|
|
|
<span class="c_red">*</span>
|
|
|
|
|
<%= @homework.homework_type == 2 ? "提交代码" : "作品描述"%>
|
|
|
|
|
:
|
|
|
|
|
</label>
|
|
|
|
|
<%= f.text_area "description", :class => "w620 hwork_txt ", :placeholder => "作品描述不能为空", :onkeyup => "regexStudentWorkDescription();"%>
|
2015-05-21 11:58:34 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<p id="student_work_description_textarea" class="c_red ml90 mb10"></p>
|
|
|
|
|
</p>
|
|
|
|
|
<div class="cl"></div>
|
2015-07-08 09:49:24 +08:00
|
|
|
|
<% if @homework.homework_type != 2%>
|
|
|
|
|
<p>
|
|
|
|
|
<label class="fl"> 添加附件 :</label>
|
|
|
|
|
<%= render :partial => 'attachments/new_form' %>
|
|
|
|
|
</p>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% end%>
|
2015-05-21 11:58:34 +08:00
|
|
|
|
<p class="ml80 ">
|
2015-05-29 08:56:07 +08:00
|
|
|
|
<a href="javascript:void(0)" class="blue_btn fl c_white" onclick="new_student_work();">提交作品</a>
|
2015-05-21 11:58:34 +08:00
|
|
|
|
<%= link_to "返 回".html_safe, student_work_index_path(:homework => @homework), :class => "blue_btn grey_btn fl c_white"%>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</p>
|
|
|
|
|
</div><!---创建作业内容结束-->
|
|
|
|
|
<% end%>
|
2015-05-20 17:53:01 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!--新建作业结束-->
|
|
|
|
|
<div class="cl"></div>
|