From 06e90c83e40513601bd5ee8ecc61720cf257b792 Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 4 May 2016 20:12:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BA=A7=E7=9B=AE=E5=BD=95=E4=B8=8D?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E6=8E=92=E5=88=97=E5=AE=9A=E5=88=B6=E5=92=8C?= =?UTF-8?q?=E5=9F=9F=E5=90=8D=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../organizations/_subfield_list.html.erb | 115 +----------------- .../_subfield_sub_domains_list.html.erb | 37 ++++++ 2 files changed, 38 insertions(+), 114 deletions(-) create mode 100644 app/views/organizations/_subfield_sub_domains_list.html.erb 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) %>
- - + <%= 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 %>