diff --git a/app/views/softapplications/_form.html.erb b/app/views/softapplications/_form.html.erb
index d0f6b5bc6..27954a7d0 100644
--- a/app/views/softapplications/_form.html.erb
+++ b/app/views/softapplications/_form.html.erb
@@ -51,11 +51,19 @@
* :
<%#= f.text_field :app_type_name, :required => true, :size => 60, :style => "width:400px;" %>
- <%= f.select :app_type_name,work_type_opttion, {},{:style => "width:410px;",:onchange => "selectChange(this)"} %>
-
- <%#= f.text_field :other_input, :required => true, :size => 60, :style => "width:100px;" %>
-
-
+ <% if work_type_opttion.include?([@softapplication.app_type_name,@softapplication.app_type_name]) %>
+ <%= f.select :app_type_name,options_for_select(work_type_opttion,@softapplication.app_type_name), {},{:style => "width:410px;",:onchange => "selectChange(this)"} %>
+
+ <%#= f.text_field :other_input, :required => true, :size => 60, :style => "width:100px;" %>
+
+
+ <% else %>
+ <%= f.select :app_type_name,options_for_select(work_type_opttion,"其他"), {},{:style => "width:410px;",:onchange => "selectChange(this)"} %>
+
+ <%#= f.text_field :other_input, :required => true, :size => 60, :style => "width:100px;" %>
+
+
+ <% end %>
|
@@ -82,7 +90,7 @@
<%= l(:label_work_deposit_project) %>:
- <%= select_tag 'project', options_for_select(select_option_helper(@option)), :name => 'project', :class => 'grayline3' %>
+ <%= select_tag 'project', options_for_select(select_option_helper(@option),@softapplication.project_id), :name => 'project', :class => 'grayline3' %>
<%#= link_to '创建项目', new_project_path(course: 0, project_type: 0), :target=>'_blank'%>