<% domain = Secdomain.where("sub_type=2 and pid=?", @organization.id).first %>
配置
<%#= form_for( @organization,{:controller => 'organizations',:action => 'update',:id=>@organization,:html=>{:id=>'update_org_form',:method=>'put'}}) do %> <%= labelled_form_for @organization do |f|%> <%= render :partial=>"new_org_avatar_form",:locals=> {source:@organization} %>
组织名称:
组织描述:
组织URL:
http:// .trustie.net申请 <% record = OrgMessage.where("organization_id=? and message_type='ApplySubdomain'", @organization.id).order("updated_at desc").first %> <% if domain.present? and record.present? and record.content == domain.subname %> (已批准) <% elsif record %> (您申请了子域名<%= OrgMessage.where("organization_id=? and message_type='ApplySubdomain'", @organization.id).order("updated_at desc").first.content %>,还未批准) <% end %>

显示模式 : /> />
公开 : class="ml3" />
下载支持 : name="organization[allow_guest_download]" <%= @organization.allow_guest_download ? 'checked': ''%> class="ml3" />  允许游客下载 <%= @organization.is_public? ? "" : "(私有组织不允许游客下载资源)" %>
保存 <% end %>
  • 用户
  • 角色
<%= render :partial=>"org_member_list",:locals=> {:members=>@organization.org_members} %>

添加成员

<%= form_tag url_for(:controller => 'org_member', :action => 'create', :org => @organization),:id=>'org_member_add_form',:remote=>true do |f|%> <%# if @organization.secdomain_name.nil? %> <%= javascript_tag "observeSearchfield('not_org_member_search', null, '#{ escape_javascript "/org_member/org_member_autocomplete?" + {:org=> @organization.id}.to_query }')" %> <%#= javascript_tag "observeSearchfield('not_org_member_search', null, '#{url_for(:controller => 'organizations', :action => 'org_member_autocomplete', :org=> @organization.id)}')" %> <%# else %> <%#= javascript_tag "observeSearchfield('not_org_member_search', null, '#{ escape_javascript secdomain_with_protocol(@organization.secdomain_name) + "/org_member/org_member_autocomplete?" + {:org=> @organization.id}.to_query }')" %> <%# end %>
<%= find_user_not_in_current_org_by_name(@project) %>
  • 角色
新增成员 <% 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 %>
  • 栏目类型
  • <%= render :partial => 'organizations/org_custom_admin' %>
  • 新增
<% end %>
<%= render :partial => 'organizations/subfield_list', :locals => {:subfields => subfield_to_addmin?(@organization)} %>