add_user:
  fields:
  - type: section
    title: PLUGIN_ADMIN.ADD_ACCOUNT

  - type: text
    label: PLUGIN_ADMIN.USERNAME
    help: PLUGIN_ADMIN.USERNAME_HELP
    name: username
    placeholder: PLUGIN_ADMIN.USERNAME_PLACEHOLDER
    validate:
      required: true
      message: PLUGIN_LOGIN.USERNAME_NOT_VALID

add_group:
  fields:
  - type: section
    title: PLUGIN_ADMIN_ADDON_USER_MANAGER.ADD_GROUP

  - type: text
    label: PLUGIN_ADMIN.NAME
    name: name
    validate:
      required: true

bulk_user:
  fields:
  - type: section
    title: PLUGIN_ADMIN_ADDON_USER_MANAGER.BULK_DELETE_USER

  - type: button
    text: PLUGIN_ADMIN_ADDON_USER_MANAGER.BULK_DELETE
    name: bulk_delete
    style: vertical
    classes: large warning

  - type: section
    title: PLUGIN_ADMIN_ADDON_USER_MANAGER.BULK_USER_GROUP

  - type: select
    name: groups
    multiple: true
    size: large
    label: PLUGIN_ADMIN.GROUPS
    classes: fancy
    help: PLUGIN_ADMIN.GROUPS_HELP
    validate:
        type: commalist

  - type: button
    text: PLUGIN_ADMIN_ADDON_USER_MANAGER.BULK_ADD_GROUP
    name: bulk_add_to_group
    style: vertical
    classes: large

  - type: button
    text: PLUGIN_ADMIN_ADDON_USER_MANAGER.BULK_REMOVE_GROUP
    name: bulk_remove_from_group
    style: vertical
    classes: large warning

  - type: selectize
    name: permissions
    multiple: true
    size: large
    label: PLUGIN_ADMIN.PERMISSIONS
    classes: fancy
    help: PLUGIN_ADMIN.PERMISSIONS_HELP
    validate:
        type: commalist

  - type: button
    text: PLUGIN_ADMIN_ADDON_USER_MANAGER.BULK_ADD_PERMISSIONS
    name: bulk_add_acl
    style: vertical
    classes: large

  - type: button
    text: PLUGIN_ADMIN_ADDON_USER_MANAGER.BULK_REMOVE_PERMISSIONS
    name: bulk_remove_acl
    style: vertical
    classes: large warning

bulk_group:
  fields:
  - type: section
    title: PLUGIN_ADMIN_ADDON_USER_MANAGER.BULK_DELETE_GROUP

  - type: button
    text: PLUGIN_ADMIN_ADDON_USER_MANAGER.BULK_DELETE
    name: bulk_delete
    style: vertical
    classes: large warning