|
|
|
@ -64,18 +64,6 @@
|
|
|
|
|
<%= f.text_field :name, :required => true, :name => "homework_name", :class => "w430 bo", :maxlength => 254, :placeholder => "作品名称", :onblur => "regexName();"%>
|
|
|
|
|
<span id="homework_attach_name_span"></span>
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
<label> 提交项目
|
|
|
|
|
<img src="/images/bid/pic_question.png" width="16" height="16"
|
|
|
|
|
title="项目是一种由用户创建的基于网络的协作空间,能够为个人或小组提供分布式的协同交流和资料管理等方面的支持。
|
|
|
|
|
项目托管平台:http://forge.trustie.ne">:
|
|
|
|
|
</label>
|
|
|
|
|
<% if @homework.project.nil? %>
|
|
|
|
|
<%= f.select :project_id, options_for_select(user_projects_option),{}, {:name => "project_id", :required => true,:class => "w350 bo"}%>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= f.select :project_id, options_for_select(user_projects_option,@homework.project.id),{},{:name => "project_id", :required => true, :class => "w350 bo"}%>
|
|
|
|
|
<% end %>
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
<label style="float:left;">
|
|
|
|
|
<span class="c_red">*</span>
|
|
|
|
@ -88,15 +76,29 @@
|
|
|
|
|
<p>
|
|
|
|
|
<label style="float: left;"> 添加附件 :</label>
|
|
|
|
|
<%#= render :partial => 'attachments/form' %>
|
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 90px;">
|
|
|
|
|
<% options = {:author => true, :deletable => attach_delete(@homework)} %>
|
|
|
|
|
<%= render :partial => 'attachments/links',
|
|
|
|
|
:locals => {:attachments => @homework.attachments, :options => options} %>
|
|
|
|
|
</p>
|
|
|
|
|
<% unless @homework.attachments.empty?%>
|
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 90px;">
|
|
|
|
|
<% options = {:author => true, :deletable => attach_delete(@homework)} %>
|
|
|
|
|
<%= render :partial => 'attachments/links',
|
|
|
|
|
:locals => {:attachments => @homework.attachments, :options => options} %>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 90px;">
|
|
|
|
|
<%= render :partial => 'attachments/form' %>
|
|
|
|
|
</p>
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
<label> 开发项目
|
|
|
|
|
<img src="/images/bid/pic_question.png" width="16" height="16"
|
|
|
|
|
title="项目是一种由用户创建的基于网络的协作空间,能够为个人或小组提供分布式的协同交流和资料管理等方面的支持。
|
|
|
|
|
项目托管平台:http://forge.trustie.ne">:
|
|
|
|
|
</label>
|
|
|
|
|
<% if @homework.project.nil? %>
|
|
|
|
|
<%= f.select :project_id, options_for_select(user_projects_option),{}, {:name => "project_id", :required => true,:class => "w350 bo"}%>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= f.select :project_id, options_for_select(user_projects_option,@homework.project.id),{},{:name => "project_id", :required => true, :class => "w350 bo"}%>
|
|
|
|
|
<% end %>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
<span style="float: left;">
|
|
|
|
|