给新建参赛作品中托管项目添加默认选项,使用户自行选择是否需要将参赛作品托管到制定的项目中
This commit is contained in:
parent
56b66c8f5f
commit
88b7fd24b1
|
@ -159,6 +159,7 @@ module ContestsHelper
|
||||||
|
|
||||||
def select_option_helper option
|
def select_option_helper option
|
||||||
tmp = Hash.new
|
tmp = Hash.new
|
||||||
|
tmp={"" => ""}
|
||||||
option.each do |project|
|
option.each do |project|
|
||||||
tmp[project.name] = project.identifier
|
tmp[project.name] = project.identifier
|
||||||
end
|
end
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-left: 40px">
|
<td style="padding-left: 40px">
|
||||||
<% unless @softapplication.deposit_project.nil? %>
|
<% if (@softapplication.deposit_project != "nil" && @softapplication.deposit_project != "") %>
|
||||||
<%#= textilizable ("托管项目: " + @project.name) %>
|
<%#= textilizable ("托管项目: " + @project.name) %>
|
||||||
托管项目:<%= link_to "#@project", project_path(@project.id) %>
|
托管项目:<%= link_to "#@project", project_path(@project.id) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue