2014-11-02 12:58:09 +08:00
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
|
<title>新建作业</title>
|
|
|
|
|
<%= stylesheet_link_tag 'css', :media => 'all' %>
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
2014-11-02 17:08:19 +08:00
|
|
|
|
function submit_homework_form()
|
|
|
|
|
{
|
|
|
|
|
$('#new_homework_attach').submit();
|
|
|
|
|
}
|
2014-11-02 12:58:09 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="Newwork">
|
|
|
|
|
<div id="tb_" class="tb_">
|
|
|
|
|
<ul>
|
|
|
|
|
<li id="tb_1" class="hovertab" onmouseover="x:HoverLi(1);" style="width: auto; padding:5px 10px 0;">
|
2014-11-02 17:08:19 +08:00
|
|
|
|
创建作品
|
|
|
|
|
</li>
|
|
|
|
|
<li class="N_top" style="width: 835px;">
|
|
|
|
|
<a href="#" target="_blank" >
|
|
|
|
|
创建项目
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
2014-11-02 12:58:09 +08:00
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ctt">
|
|
|
|
|
<div class="dis" id="tbc_01">
|
|
|
|
|
<div class="N_con">
|
2014-11-02 17:08:19 +08:00
|
|
|
|
<%= form_for(HomeworkAttach.new, :method => :post,
|
|
|
|
|
:name => 'new_form',
|
|
|
|
|
:url => {:controller => 'homework_attach',
|
|
|
|
|
:action => 'create',
|
|
|
|
|
:user_id => User.current.id,
|
|
|
|
|
:bid_id => @bid
|
|
|
|
|
}) do |f|%>
|
2014-11-02 12:58:09 +08:00
|
|
|
|
<p>
|
2014-11-02 17:08:19 +08:00
|
|
|
|
<label>
|
|
|
|
|
<span class="c_red">
|
|
|
|
|
*
|
|
|
|
|
</span>
|
|
|
|
|
作品名称 :
|
|
|
|
|
</label>
|
|
|
|
|
<%= f.text_field "name", :required => true, :size => 60, :class => "w430 bo", :maxlength => 254, :placeholder => "作品名称" %>
|
2014-11-02 12:58:09 +08:00
|
|
|
|
</p>
|
|
|
|
|
<p>
|
2014-11-02 17:08:19 +08:00
|
|
|
|
<label> 提交项目
|
|
|
|
|
<img src="/images/bid/pic_question.png" width="16" height="16"
|
|
|
|
|
title="项目是一种由用户创建的基于网络的协作空间,能够为个人或小组提供分布式的协同交流和资料管理等方面的支持。
|
|
|
|
|
项目托管平台:http://forge.trustie.ne">:
|
|
|
|
|
</label>
|
|
|
|
|
<%= f.select :project_id,options_for_select(user_projects_option), {},{:class => "w350 bo"} %>
|
2014-11-02 12:58:09 +08:00
|
|
|
|
</p>
|
|
|
|
|
<p>
|
2014-11-02 17:08:19 +08:00
|
|
|
|
<label style="float:left;">
|
|
|
|
|
<span class="c_red">
|
|
|
|
|
*
|
|
|
|
|
</span>
|
|
|
|
|
作业描述 :
|
|
|
|
|
</label>
|
|
|
|
|
<%= f.text_area "description", :class => "w620", :maxlength => 3000, :placeholder => "最多3000个汉字" %>
|
2014-11-02 12:58:09 +08:00
|
|
|
|
</p>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<p>
|
2014-11-02 17:08:19 +08:00
|
|
|
|
<fieldset style="text-align: left;">
|
|
|
|
|
<legend>
|
|
|
|
|
<%= l(:label_attachment_plural) %>
|
|
|
|
|
</legend>
|
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
|
|
|
|
|
<%= render :partial => 'attachments/form' %>
|
|
|
|
|
</p>
|
|
|
|
|
</fieldset>
|
2014-11-02 12:58:09 +08:00
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p>
|
2014-11-02 17:08:19 +08:00
|
|
|
|
<span style="float: left;">
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
<a href="#" class="tijiao" onclick="submit_homework_form();">
|
|
|
|
|
<%= l(:label_button_ok) %>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<!--<a href="#" target="_blank" class="tijiao">-->
|
|
|
|
|
<!--重 置-->
|
|
|
|
|
<!--</a>-->
|
2014-11-02 12:58:09 +08:00
|
|
|
|
<div class="cl"></div>
|
2014-10-23 11:30:34 +08:00
|
|
|
|
</p>
|
2014-11-02 17:08:19 +08:00
|
|
|
|
<% end %>
|
2014-11-02 12:58:09 +08:00
|
|
|
|
|
|
|
|
|
</div><!---创建作业内容结束-->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div><!--新建作业结束-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-10-23 11:30:34 +08:00
|
|
|
|
</div>
|
2014-11-02 12:58:09 +08:00
|
|
|
|
</body>
|
|
|
|
|
</html>
|