<% 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 %>
<%= labelled_form_for @work,:html => { :multipart => true },:remote=>true do |f|%>
提示:作品名称和描述中不要出现真实的姓名信息
<% if @homework.homework_type == 3 %> <% str = User.current.id.to_s%> <% @work.student_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 %>

<%= render :partial => 'users/user_homework_attachment', :locals => {:container => @work, :has_program=>false,:has_group=>false} %>
<% if @homework.homework_type == 3 %> <% end %>
确定 <%= link_to "取消", student_work_index_path(:homework => @homework), :class => "fr mr10 mt3"%>
<% end%>