<?php
return array(
    "type" => "team_member",
    "model" => "App\Models\TeamMember",
    "label" => "Team members",
    "label_singular" => "Team member",
    "group" => "none",
    "template" => false,
    "order" => true,
    "parent" => array(
        "field" => "team_member_group_id",
        "contentType" => "team_member_group"
    ),
    "fields" => array(
        array(
            "name" => "title",
            "label" => "name",
            "type" => "textBox",
            "maxLength" => 50,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:50",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "title_position",
            "label" => "position",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:100",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "content",
            "label" => "content",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim|xss_clean",
            "validation" => ""
        ),
        array(
            "name" => "phone",
            "label" => "Telephone",
            "type" => "textBox",
            "maxLength" => 45,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:45"
        ),
        array(
            "name" => "email",
            "label" => "e-mail",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|email|max:255",
            "inList" => false,
            "search" => false,
            "sort" => false
        ),
        array(
            "name" => "twitter_link",
            "label" => "twitter link",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|url|max:255",
            "inList" => false,
            "search" => false,
            "sort" => false
        ),
        array(
            "name" => "linkedin_link",
            "label" => "linkedIn link",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|url|max:255",
            "inList" => false,
            "search" => false,
            "sort" => false
        ),
        array(
            "name" => "photo",
            "label" => "photo",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "0",
            "info" => "Ideally > 640x828",
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "400x400", "width" => 400, "height" => 400),
            ),
            */
            "relatedContentType" => 'team_member'
        ),/*
        array(
            "name" => "team_member_group_id",
            "label" => "group",
            "type" => "selectBox",
            "contentType" => "team_member_group",
            "preValidation" => "trim",
            "validation" => "required",
            "inList" => true,
            "search" => true,
            "sort" => true,
            "placement" => "sidebar"
        ),*/
        array(
            "name" => "office_id",
            "label" => "office",
            "type" => "selectBox",
            "contentType" => "office",
            "preValidation" => "trim",
            "validation" => "nullable|integer|min:0",
            "inList" => false,
            "search" => false,
            "sort" => false,
            "placement" => "sidebar"
        ),
        array(
            "name" => "related",
            "label" => "Related Publications/News",
            "type" => "multiplePicker",
            "objectTypes" => array("news", "publication"),
            "minSize" => 0,
            "maxSize" => 3,
            "order" => true,
            "websiteFiltered" => true
        ),
    ),
    "actions" => array(
        "insert", "edit", "duplicate", "delete"
    )
);
