给新建参赛作品中托管项目添加默认选项,使用户自行选择是否需要将参赛作品托管到制定的项目中

This commit is contained in:
wanglinchun 2014-05-21 19:59:36 +08:00
parent 56b66c8f5f
commit 88b7fd24b1
2 changed files with 2 additions and 1 deletions

View File

@ -159,6 +159,7 @@ module ContestsHelper
def select_option_helper option
tmp = Hash.new
tmp={"" => ""}
option.each do |project|
tmp[project.name] = project.identifier
end

View File

@ -48,7 +48,7 @@
</tr>
<tr>
<td style="padding-left: 40px">
<% unless @softapplication.deposit_project.nil? %>
<% if (@softapplication.deposit_project != "nil" && @softapplication.deposit_project != "") %>
<%#= textilizable ("托管项目: " + @project.name) %>
托管项目:<%= link_to "#@project", project_path(@project.id) %>
<% end %>