+
@@ -73,10 +74,10 @@
<% end %>
-
<%= field.field_type == "Post" ? "帖子" : "资源" %>
-
+ <%= 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 %>
@@ -89,10 +90,129 @@
<%#= 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 => "linkBlue fr mr10" %>
-
编辑
+
+ <%= 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" %>
+ |
+ 编辑
+
+
+
+
+
+ -
+
+ <%= 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" %>
+ |
+ 编辑
+
<% end %>
diff --git a/app/views/organizations/setting.html.erb b/app/views/organizations/setting.html.erb
index 0d8fa6be8..edba129e4 100644
--- a/app/views/organizations/setting.html.erb
+++ b/app/views/organizations/setting.html.erb
@@ -129,63 +129,42 @@
-
-
- <%= form_tag url_for(:controller => 'sub_domains', :action => 'create', :org_subfield_id => 458), :id=> 'add_subfield_form_subdomain',:remote => true do %>
-
-
-
-
确定
- <% end %>
-
-
+
+ <%= form_tag url_for(:controller => 'org_subfields', :action => 'create', :organization_id => @organization.id), :id=> 'add_subfield_form',:remote => true do %>
+
新增一级栏目
+
+
+
域名目录
+ <% if domain %>
+
<%= domain.subname %>.trustie.net/
+ <% else %>
+
(用户自定义url,可选) 您还没有子域名,请先在左侧信息栏申请子域名
+ <% end %>
+
+
+
+ <% end %>
+
-
+
<%= render :partial => 'organizations/subfield_list', :locals => {:subfields => @organization.org_subfields.order("priority")} %>
-
-
-
新增栏目
- <%= form_tag url_for(:controller => 'org_subfields', :action => 'create', :organization_id => @organization.id), :id=> 'add_subfield_form',:remote => true do %>
-
-
-
域名目录(用户自定义url,可选)
- <% if domain %>
-
<%= domain.subname %>.trustie.net/
- <% else %>
-
您还没有子域名,请先在左侧信息栏申请子域名
- <% end %>
-
-
-
-
-
确定
- <% end %>
-
-
-