<?php
return array(
    "type" => "event_item",
    "model" => "EventItem",
    "label" => "Events",
    "label_singular" => "Event",
    "group" => "general",
    "template" => false,
    "order" => false,
    "fields" => array(
        array(
            "name" => "title",
            "label" => "Title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:150",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "content",
            "label" => "Content",
            "type" => "textArea",
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "keywords",
            "label" => "Keywords",
            "type" => "multiplePicker",
            "longList" => true,
            "allowInsert" => true,       
            "objectTypes" => array("keyword"),
            "order" => false
        ),
        array(
            "name" => "locations",
            "label" => "Locations",
            "type" => "multiplePicker",
            "longList" => true,
            "allowInsert" => true,
            "objectTypes" => array("location"),
            "order" => false
        ),
        array(
            "name" => "persons",
            "label" => "Personalities",
            "type" => "multiplePicker",
            "longList" => true,
            "allowInsert" => true,
            "objectTypes" => array("person"),
            "order" => false
        ),
        array(
            "name" => "event_type",
            "label" => "Tipo Evento",
            "type" => "selectBox",
            "list" => array(
                "text" => "Texto",
                "image" => "Imagem",
                "video" => "Video",
                "audio" => "Radio"

            ),
            "defaultValue" => "text",
            "mandatory" => true,
            "placement" => "sidebar",
            "inList" => true
        ),
        array(
            "name" => "area_id",
            "label" => "Area Evento",
            "type" => "selectBox",
            "contentType" => "area",
            "preValidation" => "trim",
            "validation" => "required|integer|min:0",
            "placement" => "sidebar",
            "inList" => true
        ),
        array(
            "name" => "image",
            "label" => "Featured Image",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "0",
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "620", "width" => 620, "height" => null),
            ),
            "parent" => array(
                "name" => "event_type",
                "values" => array("video","image")
            )
        ),
        array(
            "name" => "embed",
            "label" => "Embed",
            "type" => "textBox",
            "maxLength" => 500,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|trim",
            "validation" => "max:500",
            "inList" => false,
            "search" => false,
            "sort" => false,
            "parent" => array(
                "name" => "event_type",
                "values" => array("video","audio")
            )
        ),
        array(
            "name" => "eventMedias",
            "label" => "Media Gallery",
            "type" => "singlePicker",
            "objectType" => "event_media"
        ),
        array(
            "name" => "eventDates",
            "label" => "Datas",
            "type" => "singlePicker",
            "objectType" => "event_dates",
            "order" => false,
        ),
        array(
            "name" => "is_decade",
            "label" => "Destaque decada?",
            "type" => "checkBox",
            "placement" => "sidebar"
        ),
        array(
            "name" => "is_year",
            "label" => "Destaque ano?",
            "type" => "checkBox",
            "placement" => "sidebar"
        ),
        array(
            "name" => "hide_day",
            "label" => "Dura o mês inteiro?",
            "type" => "checkBox",
            "placement" => "sidebar"
        ),
        array(
            "name" => "hide_month",
            "label" => "Dura o ano inteiro?",
            "type" => "checkBox",
            "placement" => "sidebar"
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
