<div class="project_r_h">
  <h2 class="project_h2">编辑作品</h2>
</div>
<div class="Newwork">
  <!--<div id="tb_" class="hwork_tb_">-->
    <!--<ul>-->
      <!--<li id="tb_1" class="hwork_hovertab" onclick="x:HoverLi(1);" >-->
        <!--课程名称课程名称课程名</li>-->
      <!--<li id="tb_2" class="hwork_normaltab" onclick="i:HoverLi(2);">-->
        <!--成员</li>-->
    <!--</ul>-->
  <!--</div>-->
  <div class="hwork_ctt">
    <div class="hwork_dis" id="tbc_01">
      <%= labelled_form_for @work do |f|%>
      <div class="N_con">
        <p>
          <label class="fl"><span class="c_red">*</span>&nbsp;&nbsp;作品名称&nbsp;&nbsp;&nbsp;&nbsp;：</label>
          <input type="text" name="student_work[name]" id="student_work_name" class="bo  fl" maxlength="200" onkeyup="regexStudentWorkName();" value="<%= @work.name%>">
          <a href="javascript:void(0)" class="fl ml10 mt3"  onclick="show_project();" >项目信息
            <img class="ml5 " src="/images/bid/pic_question.png" width="15" height="15"  Title="项目是一种由用户创建的基于&#10;网络的协作空间，能够为个人&#10;或小组提供分布式的协同交流&#10;和资料管理等方面的。">
          </a>
        <div class="cl"></div>
        <p id="student_work_name_span" class="c_red ml90 mb10"></p>
        </p>
        <div class="cl"></div>

        <p id="about_project" class="about_project" style="<%= @work.project.nil? ? '' : 'display:block;'%>">
          <label class="fl">&nbsp;&nbsp;&nbsp;关联项目&nbsp;&nbsp;&nbsp;&nbsp;：</label>
          <%= f.select :project,options_for_select(user_projects_option,@work.project_id), {},{:class => "bo02 mb10"}  %>
        </p>
        <div class="cl"></div>

        <p>
          <label class="fl">
            <span class="c_red">*</span>
            &nbsp;作品描述&nbsp;&nbsp;&nbsp;&nbsp;：
          </label>
          <textarea  name="student_work[description]" placeholder="最多3000个汉字(或6000个英文字符)" id="student_work_description"  class="w620 hwork_txt"  maxlength="6000" onkeyup="regexStudentWorkDescription();"><%= @work.description%></textarea>
          <p id="student_work_description_textarea" class="c_red ml90 mb10"></p>
        </p>
        <div class="cl"></div>
        <p>
          <label class="fl">&nbsp;&nbsp;&nbsp;添加附件&nbsp;&nbsp;&nbsp;&nbsp;：</label>
          <%= render :partial => 'attachments/new_form',:locals => {:container => @work} %>
        </p>
        <div class="cl"></div>
        <p class="ml80 ">
          <a href="javascript:void(0)" class="blue_btn fl c_white" onclick="edit_student_work(<%= @work.id%>);">提交作品</a>
          <%= link_to "返&nbsp;&nbsp;回".html_safe, student_work_index_path(:homework => @homework), :class => "blue_btn grey_btn fl c_white"%>
        <div class="cl"></div>
        </p>
      </div><!---创建作业内容结束-->
      <% end%>

    </div>
  </div>
</div>
</div><!--新建作业结束-->
<div class="cl"></div>