<?php

    return [
        "type"           => "imagelegends",
        "model"          => App\Models\ImageLegend::class,
        "label"          => "Imagens",
        "label_singular" => "Imagem",
        "hierarchic"     => TRUE,
        "group"          => "none",
        "order"          => TRUE,
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Nome da imagem",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "image",
                "label"         => "Imagem",
                "type"          => "mediaPicker",
                "multiple"      => FALSE,
                "mediaType"     => "image",
            ],
            [
                "name"          => "legend",
                "label"         => "Legenda",
                "type"          => "textBox",
                "maxLength"     => 250,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:250",
            ],
        ],
        "actions"        => [
            "order", "preview"
        ]
    ];
