配置
<%#= 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} %>
组织名称:
组织描述:
公开 : class="ml3" />
保存 <% 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 => {:subfields => @organization.org_subfields } %>

新增栏目

<%= form_tag url_for(:controller => 'org_subfields', :action => 'create', :organization_id => @organization.id), :id=> 'add_subfield_form',:remote => true do %>
  • 栏目类型
确定 <% end %>