cirandas.net

ref: master

plugins/sub_organizations/views/sub_organizations_plugin_myprofile/index.html.erb


<%= _('Manage sub-groups') %>

<% if !@pending_children.blank? %> <%= _('Sub-groups awaiting approval:') %>
    <% @pending_children.each do |child| %>
  • <%= link_to(child.name, child.url) %>
  • <% end %>
<% end %> <%= form_tag do %> <%= button_bar do %> <%= button(:add, _('Create a new sub-community'), :controller => 'memberships', :action => 'new_community', :profile => user.identifier, :sub_organizations_plugin_parent_to_be => profile.id) %> <%= button :add, _('Register a new sub-enterprise'), :controller => 'enterprise_registration', :sub_organizations_plugin_parent_to_be => profile.id if environment.enabled?('enterprise_registration') %> <% end %>

<%= _('Fill in the search field to find the groups that should be added as sub-group of this organization:') %>

<%= token_input_field_tag(:q, 'search-organization', {:action => 'search_organization'}, { :focus => true, :hint_text => _('Type in a search term for a group'), :pre_populate => @tokenized_children}) %> <%= button_bar do %> <%= submit_button('save', c_('Save'))%> <%= button('cancel', c_('Cancel'), {:controller => 'profile_editor'})%> <% end %> <% end %>
<%= render :partial => 'shared/list_groups', :locals => {:profile => user, :groups => @children} %>