<?xml version="1.0" encoding="UTF-8"?>

<list>
  <definition>
    <departmentBrowser>true</departmentBrowser>
    <departmentRootVisible>false</departmentRootVisible>
    <baseMode>true</baseMode>
    <multiSelect>true</multiSelect>
    <template>../plugins/admin/groups/userGroupSelect/classic/selectUserGroup-list.tpl</template>
    <module>users</module>
    <label>Please select the desired entries</label>
    <defaultSortColumn>1</defaultSortColumn>

    <objectType>
      <label>User</label>
      <objectClass>gosaAccount</objectClass>
      <category>users</category>
      <class>user</class>
      <image>plugins/users/images/select_user.png</image>
    </objectType>

    <objectType>
      <label>Group</label>
      <objectClass>posixGroup</objectClass>
      <category>groups</category>
      <class>group</class>
      <image>plugins/groups/images/select_group.png</image>
    </objectType>

  </definition>

  <table>
    <layout>|20px;c|||[200px]</layout>

    <department>
      <value>%{filter:objectType(dn,objectClass)}</value>
    </department>

    <department>
      <value>%{filter:departmentLink(row,dn,description)}</value>
      <span>1</span>
    </department>

    <column>
      <value>%{filter:objectType(dn,objectClass)}</value>
    </column>

    <column>
      <label>Name</label>
      <sortAttribute>cn</sortAttribute>
      <sortType>string</sortType>
      <value>%{cn}</value>
      <export>true</export>
    </column>

    <column>
      <label>Description</label>
      <sortAttribute>description</sortAttribute>
      <sortType>string</sortType>
      <value>%{description}</value>
      <export>true</export>
    </column>

    <column>
      <label>Login</label>
      <sortAttribute>uid</sortAttribute>
      <sortType>string</sortType>
      <value>%{uid}</value>
      <export>true</export>
    </column>

  </table>

  <actionmenu>
  </actionmenu>

  <actiontriggers snapshot="false" copypaste="false">
    <action>
      <name>edit</name>
      <type>entry</type>
      <objectclass>gosaAccount</objectclass>
      <image>images/lists/edit.png</image>
      <label>Add</label>
    </action>
  </actiontriggers>
</list>
