<?php

    return [
        "type"           => "rows",
        "model"          => App\Models\Row::class,
        "label"          => "Rows",
        "label_singular" => "Row",
        "template"       => FALSE,
        "hierarchic"     => FALSE,
        "group"          => "none",
        "order"          => FALSE,
        "showSlug"       => TRUE,
        "showUri"        => FALSE,

        "search" => [
            "fields" => [
                "block_title"
            ],
            "parentRelationships" => [
                "listBoxItem",
            ]
        ],

        "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"          => "block_title",
                "label"         => "Text",
                "type"          => "editor",
                "maxLength"     => 800,
                "multiLanguage" => TRUE,
                "preValidation" => "xss_clean",
                "validation"    => "htmlMax:800",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "webLinks",
                "label"         => "Links",
                "type"          => "multiplePicker",
                "longList"      => true,
                "allowInsert"   => false,
                "objectTypes"   => ["webLinks"],
                "order"         => true,
            ],
            [
                "name"          => "file_title",
                "label"         => "File title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
            ],
            [
                "name"      => "file",
                "label"     => "File",
                "type"      => "mediaPicker",
                "multiple"  => FALSE,
                "mediaType" => "document",
            ],
            [
                "name"          => "style",
                "label"         => "Row style",
                "type"          => "selectBox",
                "list"          => [
                    "green_check"     => "Green check",
                ],
                "preValidation" => "trim",
                "placement"     => "sidebar",
            ],
        ],
        "actions"        => [
            "insert", "edit", "delete"
        ]
    ];
