<?php

    return [
        "type"           => "square_grid_item",
        "model"          => "SquareGridItem",
        "label"          => "Square Grid Itens",
        "label_singular" => "Square Grid Item",
        "group"          => "general",
        "order"          => TRUE,
        "fields"         => [
            [
                "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
            ],
            [
                "name"          => "subtitle",
                "label"         => "Subtitle",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
                "inList"        => FALSE,
                "search"        => FALSE,
                "sort"          => FALSE
            ],
            [
                "name"      => "squareImage",
                "label"     => "Square Image",
                "type"      => "mediaPicker",
                "multiple"  => FALSE,
                "mediaType" => "image",
                "placement" => "sidebar"
            ],
            [
                "name"          => "link",
                "label"         => "Link",
                "type"          => "link",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
                "inList"        => FALSE,
                "search"        => FALSE,
                "sort"          => FALSE
            ]
        ],
        "actions"        => [
            "edit", "order", "insert", "delete"
        ]
    ];

