<?php

return [
    "type"           => "result_date",
    "model"          => App\Models\ResultDate::class,
    "label"          => "content_types.result_date_plural",
    "label_singular" => "content_types.result_date_singular",
    "hierarchic"     => FALSE,
    "group"          => "none",
    "parent" => array(
        "field"         => "result_id",
        "contentType"   => "result"
    ),
    "search"         => null,
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "Date Label",
            "type"          => "textBox",
            "maxLength"     => 100,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:100",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "date",
            "label"         => "Date (free text)",
            "type"          => "textBox",
            "maxLength"     => 50,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:50",
        ],
    ],
    "actions"        => [
        "insert", "edit", "delete"
    ]
];
