<?php do_action('pp_group_edit_form', $agent_type, $agent_id); if ($agent_id) { if (pp_group_type_editable($agent_type) && !in_array($agent->metagroup_type, array('wp_role', 'meta_role'))) { $member_types = array(); if (pp_has_group_cap('pp_manage_members', $agent_id, $agent_type)) { $member_types[] = 'member'; } if ($member_types) { PP_GroupsUI::_draw_member_checklists($agent_id, $agent_type, compact('member_types')); } } } elseif ('user' == $agent_type) { echo '<br />'; PP_GroupsUI::_draw_member_checklists(0, 'pp_group', array('suppress_caption' => true)); } do_action('pp_edit_group_profile', $agent_type, $agent_id); ?> <input type="hidden" name="action" value="update" /> <input type="hidden" name="agent_id" id="agent_id" value="<?php echo esc_attr($agent_id); ?> " /> <input type="hidden" name="agent_type" id="agent_type" value="<?php echo esc_attr($agent_type); ?> " /> </form>
?> </label></th> <td><input type="text" name="group_name" id="group_name" value="" class="regular-text" /> </td> </tr> <tr class="form-field"> <th><label for="description"><?php echo __ppw('Description', 'pp'); ?> </label></th> <td><input type="text" name="description" id="description" value="" class="regular-text" size="80" /></td> </tr> </table> <?php if (pp_has_group_cap('pp_manage_members', 0, $agent_type)) { PP_GroupsUI::_draw_member_checklists(0, $agent_type); } echo '<div style="clear:both;margin-top:10px;"><br />'; _e('Note: Supplemental Roles and other group settings can be configured here after the new group is created.', 'pp'); echo '</div>'; do_action('pp_new_group_ui'); ?> <?php submit_button(__('Create Group', 'pp'), 'primary large pp-submit'); ?> </form> </div>