<?xml version="1.0" encoding="utf-8" standalone="yes" ?>

<panel
  background_opaque="true"
  background_visible="true"
  bg_alpha_color="DkGray"
  bg_opaque_color="DkGray"
  height="350"
  follows="all"
  label="GROUPS"
  layout="topleft"
  left="0"
  help_topic="people_groups_tab"
  name="groups_panel"
  width="330"
  top="0">
  <!--
     *NOTE: no_groups_msg & group_list attributes are not defined as translatable in VLT. See EXT-5931
     Values are set from appropriate strings at the top of file via LLPeoplePanel::postBuild()
    -->
  <panel
    follows="left|top|right"
    height="27"
    label="bottom_panel"
    layout="topleft"
    left="0"
    name="groups_buttons_panel"
    right="-1"
    top="0">
    <filter_editor
      follows="left|top|right"
      height="23"
      layout="topleft"
      left="6"
      label="Filter Groups"
      max_length_chars="300"
      name="groups_filter_input"
      text_pad_left="10"
      top="4"
      width="177" />
    <menu_button
      follows="right"
      height="25"
      image_hover_unselected="Toolbar_Middle_Over"
      image_overlay="OptionsMenu_Off"
      image_selected="Toolbar_Middle_Selected"
      image_unselected="Toolbar_Middle_Off"
      layout="topleft"
      left_pad="8"
      name="groups_gear_btn"
      tool_tip="Actions on selected group"
      top="3"
      width="31" />
    <menu_button
      follows="right"
      height="25"
      image_hover_unselected="Toolbar_Middle_Over"
      image_overlay="Conv_toolbar_sort"
      image_selected="Toolbar_Middle_Selected"
      image_unselected="Toolbar_Middle_Off"
      layout="topleft"
      left_pad="2"
      menu_filename="menu_people_groups_view.xml"
      menu_position="bottomleft"
      name="groups_view_btn"
      tool_tip="View/sort options"
      top_delta="0"
      width="31" />
    <menu_button
      follows="right"
      height="25"
      image_hover_unselected="Toolbar_Middle_Over"
      image_overlay="AddItem_Off"
      image_selected="Toolbar_Middle_Selected"
      image_unselected="Toolbar_Middle_Off"
      layout="topleft"
      left_pad="2"
      menu_filename="menu_group_plus.xml"
      menu_position="bottomleft"
      name="plus_btn"
      tool_tip="Join group/Create new group"
      top_delta="0"
      width="31">
      <validate_callback
        function="People.Group.Plus.Validate" />
    </menu_button>
    <dnd_button
      follows="right"
      height="25"
      image_hover_unselected="Toolbar_Middle_Over"
      image_overlay="TrashItem_Off"
      image_selected="Toolbar_Middle_Selected"
      image_unselected="Toolbar_Middle_Off"
      left_pad="2"
      layout="topleft"
      name="minus_btn"
      tool_tip="Leave selected group"
      top_delta="0"
      width="31">
      <commit_callback
        function="People.Group.Minus" />
    </dnd_button>
  </panel>
  <text
    type="string"
    length="1"
    follows="left|top|right"
    height="14"
    layout="topleft"
    right="-10"
    top_pad="4"
    left="3"
    use_ellipses="true"
    name="groupcount">
    You belong to [COUNT] groups, and can join [REMAINING] more.
  </text>
  <group_list
    allow_select="true"
    follows="all"
    height="388"
    layout="topleft"
    left="3"
    name="group_list"
    right="-2"
    top_pad="4" />
</panel>