<?php

return [
    "type"           => "document_lists",
    "model"          => App\Models\DocumentList::class,
    "label"          => "Document Lists",
    "label_singular" => "Document List",
    "group"          => "content types",
    "order"          => TRUE,
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "Document List Name",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "tab_name",
            "label"         => "Tab Name",
            "type"          => "textBox",
            "maxLength"     => 250,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:250",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"        => "documents",
            "label"       => "Documents",
            "type"        => "multiplePicker",
            "longList"    => TRUE,
            "allowInsert" => TRUE,
            "objectTypes" => ["documents"],
            "order"       => TRUE,
        ],
        [
            "name"          => "allow_join_users",
            "label"         => "Allow Join users",
            "type"          => "checkBox",
            "inList"        => TRUE,
            "placement"     => "sidebar",
        ],
    ],
    "actions"        => [
        "edit", "order", "insert", "delete", "clearUsers"
    ]
];
