提交作品
<%= @homework.name%>(作业名称)
截止时间:<%= @homework.end_time%>
<%= link_to @homework.user.show_name, user_activities_path(@homework.user_id), :class => "c_blue"%>
<%= @homework.description.html_safe %>
<%= form_for(@student_work, :html => { :multipart => true }, :url => {:controller => 'student_work', :action => 'create', :homework => @homework.id }) do |f|%>
提示:作品名称和描述中不要出现真实的姓名信息
<%= f.text_field "name", :required => true, :size => 60, :class => "InputBox W700", :maxlength => 200, :placeholder => "请简洁的概括作品的功能或特性", :onkeyup => "regexStudentWorkName();" %>

<%= f.text_area "description", :class => "InputBox W700 H150", :placeholder => "请介绍你的作品", :onkeyup => "regexStudentWorkDescription();"%>

<%= render :partial => 'users/user_homework_attachment', :locals => {:container => @student_work, :has_program=>false} %>
<%= select_tag :project_id, options_for_select(user_projects_option, @student_work.project_id), {:class => "InputBox W680 fl"} %> <%#=link_to "", new_project_path, :class => "ml5 mt5 SetUpIcon fl", :title => "快速创建"%>
确定 <%= link_to "取消", user_homeworks_user_path(User.current.id), :class => "fr mr10 mt3"%>
<% end%>