<% content_for :header_tags do %> <%= import_ke(enable_at: true, prettify: false, init_activity: false) %> <%= javascript_include_tag 'homework','baiduTemplate' %> <% end %>
提交作品
注意:暂不支持IE浏览器的上传,请更换浏览器
截止时间:<%= @contestwork.end_time%>
<%= link_to @contestwork.user.show_name, user_activities_path(@contestwork.user_id), :class => "c_blue"%>
<%= @contestwork.description.html_safe %>
<%= render :partial => 'student_work/work_attachments', :locals => {:attachments => @contestwork.attachments} %>
<%= form_for(@student_work, :html => { :multipart => true }, :url => {:controller => 'contestant_works', :action => 'create', :work => @contestwork.id },:remote=>true ) do |f| %>
<% if @contestwork.work_type == 3 %> <%=hidden_field_tag 'group_member_ids', params[:group_member_ids], :value=>User.current.id %> <% end %>

<%#= f.text_area "description", :class => "InputBox W700 H150", :placeholder => "请输入作品描述", :onkeyup => "regexStudentWorkDescription();"%>

<% if @contestwork && @contestwork.work_type == 3 %> 合作成员:<%= User.current.show_name %>(组长) <% end %>
<% if @contestwork && @contestwork.work_type == 3 && @contestwork.work_detail_group.base_on_project %> <% unless @contestwork.contestant_work_projects.where("user_id = #{User.current.id}").empty? %> <% project = Project.find @contestwork.contestant_work_projects.where("user_id = #{User.current.id}").first.project_id %> 关联项目:<%= project.name %> <% end %> <% end %>
<%= render :partial => 'contestant_work_attachment', :locals => {:container => @student_work} %>
<% if @contestwork.work_type == 3 %> <% end %>
提交 <%= link_to "取消", delete_work_contestant_works_path(:work =>@contestwork.id),:id => 'new_message_cancel_btn', :class => "fr mr10 mt3"%>
<% end%>