<% content_for :header_tags do %> <%= import_ke(enable_at: true, prettify: false, init_activity: false) %> <%= javascript_include_tag 'homework','baiduTemplate' %> <% end %>
编辑作品
截止时间:<%= @contestwork.end_time%>
<%= link_to @contestwork.user.show_name, user_activities_path(@contestwork.user_id), :class => "c_blue"%>
<%= @contestwork.description.html_safe %>
<%= labelled_form_for @work,:html => { :multipart => true },:remote=>true do |f|%>
<% if @contestwork.work_type == 3 %> <% str = User.current.id.to_s%> <% @work.contestant_work_projects.where("is_leader = ?", 0).each do |pro| %> <% str += ','+pro.user_id.to_s %> <% end %> <%=hidden_field_tag 'group_member_ids', params[:group_member_ids], :value=>str %> <% end %>

<% 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 => @work} %>
<% if @contestwork.work_type == 3 %> <% end %>
确定 <%= link_to "取消", contestant_work_path(:work => @contestwork.id), :class => "fr mr10 mt3"%>
<% end%>