<% 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|%> <%= javascript_tag "observeSearchfield('not_org_member_search', null, '#{ escape_javascript org_member_autocomplete_org_member_index_path(:org=>@organization, :format => 'js') }')" %>
<%= find_user_not_in_current_org_by_name(@project) %>
  • 角色
新增成员 <% end %>
<%= render :partial => 'organizations/subfield_list', :locals => {:default_fields => @organization.org_subfields.where("field_type='default'"), :subfields => @organization.org_subfields.where("field_type != 'default'") } %>

新增栏目

<%= 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 %>