diff --git a/app/views/organizations/_subfield_list.html.erb b/app/views/organizations/_subfield_list.html.erb
index 2961b97a0..464fb66e4 100644
--- a/app/views/organizations/_subfield_list.html.erb
+++ b/app/views/organizations/_subfield_list.html.erb
@@ -102,120 +102,7 @@
<%= link_to("添加二级目录", new_org_subfield_sub_domain_path(:org_subfield_id => field.id, :field => field), :class => "linkGrey fr mr5", :remote => true) %>
-
-
- -
-
- <%= field.priority %>
-
-
-
-
-
- -
-
<%= field.name %>
-
-
-
-
- - 新增
- -
- <% if field.field_type == "Resource" %>
- 列表
- <% else %>
- <%= form_tag({:controller => 'org_subfields', :action => 'update_status', :id => field.id,},:remote=>'true', :method => 'post', :id=>"update_status_form_#{field.id}", :class => 'query_form') do %>
-
<%= subfield_list_type(field.status) %>
-
-
- <%= select( :name,:group_id, subfield_status_option,
- { :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 %>
-
- <% end %>
-
- - <%= field.field_type == "Post" ? "帖子" : "资源" %>
- -
- <% if Secdomain.where("sub_type=2 and pid=?", @organization.id).count > 0 %>
-
- <%= field.subfield_subdomain_dir.nil? ? '未设置': field.subfield_subdomain_dir.name %>
-
- <% else %>
-
- <%= field.subfield_subdomain_dir.nil? ? '未设置': field.subfield_subdomain_dir.name %>
-
- <% end %>
-
-
-
-
- <%#= link_to "隐藏", hide_org_subfield_organizations_path(field), :method => 'post', :remote => true, :id => "hide_#{field.id}", :class => "linkBlue fr mr5" %>
- -
- <%= field.hide==0?"隐藏":"可见" %>
- |
- <%= link_to "删除", org_subfield_path(field), :method => 'delete', :remote => true, :confirm => "您确定删除吗?", :class => "linkGrey fr ml5 mr5" %>
- |
- 编辑
-
-
-
-
-
- -
-
- <%= field.priority %>
-
-
-
-
-
- -
-
<%= field.name %>
-
-
-
-
- - 新增
- -
- <% if field.field_type == "Resource" %>
- 列表
- <% else %>
- <%= form_tag({:controller => 'org_subfields', :action => 'update_status', :id => field.id,},:remote=>'true', :method => 'post', :id=>"update_status_form_#{field.id}", :class => 'query_form') do %>
-
<%= subfield_list_type(field.status) %>
-
-
- <%= select( :name,:group_id, subfield_status_option,
- { :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 %>
-
- <% end %>
-
- - <%= field.field_type == "Post" ? "帖子" : "资源" %>
- -
- <% if Secdomain.where("sub_type=2 and pid=?", @organization.id).count > 0 %>
-
- <%= field.subfield_subdomain_dir.nil? ? '未设置': field.subfield_subdomain_dir.name %>
-
- <% else %>
-
- <%= field.subfield_subdomain_dir.nil? ? '未设置': field.subfield_subdomain_dir.name %>
-
- <% end %>
-
-
-
-
- <%#= link_to "隐藏", hide_org_subfield_organizations_path(field), :method => 'post', :remote => true, :id => "hide_#{field.id}", :class => "linkBlue fr mr5" %>
- -
- <%= field.hide==0?"隐藏":"可见" %>
- |
- <%= link_to "删除", org_subfield_path(field), :method => 'delete', :remote => true, :confirm => "您确定删除吗?", :class => "linkGrey fr ml5 mr5" %>
- |
- 编辑
-
-
-
+ <%= render :partial => 'organizations/subfield_sub_domains_list', :locals => {:field => field} %>
<% end %>
<% end %>
diff --git a/app/views/organizations/_subfield_sub_domains_list.html.erb b/app/views/organizations/_subfield_sub_domains_list.html.erb
new file mode 100644
index 000000000..20bd31ede
--- /dev/null
+++ b/app/views/organizations/_subfield_sub_domains_list.html.erb
@@ -0,0 +1,37 @@
+<% sub_domains = field.sub_domains %>
+<% if sub_domains %>
+ <% sub_domains.each do |subdomain| %>
+
+ <% end %>
+<% end %>