<?php

return [
    "type"           => "formSections",
    "model"          => App\Models\FormSection::class,
    "label"          => "Form Sections",
    "label_singular" => "Form Section",
    "group"          => "none",
    "parent" => array(
        "field" => "form_id",
        "contentType" => "forms"
    ),
    "order"          => TRUE,

    "search" => [],

    "fields" => [
        [
            "name"          => "title",
            "label"         => "Section Title",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "description",
            "label"         => "Description",
            "type"          => "editor",
            "multiLanguage" => TRUE,
            "preValidation" => "xss_clean|trim",
        ],
        [
            "name"        => "formFields",
            "label"       => "Form Fields",
            "type"        => "singlePicker",
            "objectType"  => "formFields",
            "order"       => TRUE,
        ],
    ],

    "actions" => [
        "edit", "insert", "delete"
    ]
];
