<?php
return array(
    "type" => "standard",
    "model" => "App\Models\Standard",
    "label" => "standards",
    "label_singular" => "standard",
    "group" => "projects",
    "template" => false,
    "order" => false,
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:100",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "description",
            "label" => "content",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim",
            "validation" => ""
        ),
        array(
            "name" => "website",
            "label" => "website",
            "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" => "logoImage",
            "label" => "standard logo",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "0",
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "200x200", "width" => 200, "height" => 200),
            )
            */
        ),
        array(
            "name" => "show_cf",
            "label" => "Show in Climate Friendly",
            "type" => "checkBox",
            "placement" => "sidebar"
        ),
        array(
            "name" => "show_spg",
            "label" => "Show in SPG",
            "type" => "checkBox",
            "placement" => "sidebar"
        ),
        array(
            "name" => "standard_featured_case",
            "label" => "Featured Case Study",
            "type" => "multiplePicker",
            "websiteFiltered" => true,
            "objectTypes" => array("case_study"),
            "maxSize" => 1
        ),
        array(
            "name" => "call_to_action",
            "label" => "call to action",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 25,
            "objectTypes" => array("project", "page", "solution", "case_study")
        )
    ),
    "actions" => array(
        "insert", "edit", "duplicate", "delete"
    )
);
