diff --git a/app/helpers/organizations_helper.rb b/app/helpers/organizations_helper.rb index 3fdfc3aa0..a43890c90 100644 --- a/app/helpers/organizations_helper.rb +++ b/app/helpers/organizations_helper.rb @@ -97,6 +97,32 @@ module OrganizationsHelper type end + # 课程和项目不参与某些模块的排列 + def subfield_status_option_default + type = [] + option1 = [] + option1 << "左上" + option1 << "1" + type << option1 + option2 = [] + option2 << "中一" + option2 << "2" + type << option2 + option3 = [] + option3 << "中二" + option3 << "3" + type << option3 + option4 = [] + option4 << "中下" + option4 << "4" + type << option4 + option6 = [] + option6 << "右上" + option6 << "6" + type << option6 + type + end + def subfield_list_type subfield case subfield.to_i when 1 diff --git a/app/views/organizations/_subfield_list.html.erb b/app/views/organizations/_subfield_list.html.erb index 2d29f258f..2961b97a0 100644 --- a/app/views/organizations/_subfield_list.html.erb +++ b/app/views/organizations/_subfield_list.html.erb @@ -31,7 +31,7 @@
- <%= select( :name,:group_id, subfield_status_option, + <%= select( :name,:group_id, subfield_status_option_default, { :include_blank => false,:selected => field.status}, {:onchange=>"update_status('#update_status_form_#{field.id}');", :id =>"field_status_id", :name => "status",:class=>"undis class-edit fl", :style => "width:56px;"}) %> <% end %>