<?php

return array(
    "data" => array(
        "model" => "Content",
        "id" => 1,
        "languageKey" => "common.about_us",
        "type" => "about_us",
        "menuKey" => "about_us",
        "fields" => array(
            array(
                "name" => "title",
                "languageKey" => "common.title",
                "fieldType" => "textbox",
                "fieldMaxSize" => 255,
                "fieldSize" => 50,
                "multiLanguage" => true,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation" => "required|max:150",
                "displayField" => true
            ),
            array(
                "name" => "description",
                "languageKey" => "common.description",
                "fieldType" => "tinyMCE",
                "multiLanguage" => true,
                "preValidation" => "trim",
                "validation" => "required_language|html_max:150"
            ),
            array(
                "name" => "logo",
                "languageKey" => "common.logo",
                "fieldType" => "image",
                "multiLanguage" => false,
                "validation" => "image|max:1000|image_size:<=900,<=900",
                "keepFileName" => true,
                "keepOriginal" => true,
                "destinationPath" => config("media.about_us.path"),
                "urlPath" => config("media.about_us.url"),
                "sizes" => array(
                    array("type" => "fit", "name" => "200x200", "width" => 200, "height" => 200),
                    array("type" => "fit", "name" => "100x100", "width" => 100, "height" => 100),
                    array("type" => "resize", "name" => "thumbMaintainRatio", "width" => 300, "height" => 300),
                    array("type" => "resize", "name" => "thumbNoRatio", "width" => 300, "height" => 300, "keepRatio" => false),
                )
            ),
            array(
                "name" => "pdf",
                "languageKey" => "common.file",
                "fieldType" => "file",
                "keepFileName" => true,
                "multiLanguage" => false,
                "validation" => "required|max:1000|mimes:pdf",
                "destinationPath" => config("media.about_us.path"),
                "urlPath" => config("media.about_us.url"),
            ),
            array(
                "name" => "is_active",
                "languageKey" => "common.active",
                "fieldType" => "checkbox",
                "multiLanguage" => false,
                "validation" => "size:1"
            ),
            array(
                "name" => "date_content",
                "languageKey" => "common.date",
                "fieldType" => "calendar",
                "multiLanguage" => false,
                "validation" => "required|date_format:Y-m-d"
            ),
            array(
                "name" => "date_time_content",
                "languageKey" => "common.date_time",
                "fieldType" => "calendar_time",
                "multiLanguage" => false,
                "validation" => "date_format:Y-m-d H:i:s"
            ),
            array(
                "name" => "id_teste",
                "languageKey" => "common.teste",
                "fieldType" => "combobox",
                "multiLanguage" => false,
                "listModel" => "Teste",
                "listValueField" => "id",
                "listDisplayField" => "title_en",
                "listOrderField" => "position",
                "preValidation" => "trim",
                "validation" => "required|integer|min:1"
            ),
            array(
                "name" => "teste",
                "languageKey" => "common.testes",
                "fieldType" => "list_checkbox",
                "relation" => "testes",
                "listModel" => "Teste",
                "listValueField" => "id",
                "listDisplayField" => "title_en",
                "listOrderField" => "position",
                "preValidation" => "trim"
            ),
         ),
        "actions" => array(
            array(
                "url" => "/admin/list/index/content_gallery/{LIST_ID}",
                "languageKey" => "common.gallery",
                "icon" => "image.png"
            )
        )
    )
);
