<% content_for :header_tags do %> <%= import_ke(enable_at: true, prettify: false, init_activity: false) %> <%= javascript_include_tag 'homework','baiduTemplate' %> <% end %>
提交作品
截止时间:<%= @homework.end_time%>
<%= link_to @homework.user.show_name, user_activities_path(@homework.user_id), :class => "c_blue"%>
<%= @homework.description.html_safe %>
<%= render :partial => 'student_work/work_attachments', :locals => {:attachments => @homework.attachments} %>
<%= form_for(@student_work, :html => { :multipart => true }, :url => {:controller => 'student_work', :action => 'create', :homework => @homework.id },:remote=>true ) do |f| %>
提示:作品名称和描述中不要出现真实的姓名信息
<% if @homework.homework_type == 3 %> <%=hidden_field_tag 'group_member_ids', params[:group_member_ids], :value=>User.current.id %> <% end %>
<%= f.text_field "name", :required => true, :size => 60, :class => "InputBox W700", :maxlength => 200, :placeholder => "请输入作品名称",:value=>"#{@homework.name}的作品提交(可修改)", :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,:has_group=>false} %>
<% if @homework.homework_type == 3 %> <% end %>
提交 <%= link_to "取消", delete_work_student_work_index_path(:homework =>@homework.id),:id => 'new_message_cancel_btn', :class => "fr mr10 mt3"%>
<% end%>