<?php

return [
    "type"           => "jury_group",
    "model"          => App\Models\JuryGroup::class,
    "label"          => "content_types.jury_group_plural",
    "label_singular" => "content_types.jury_group_singular",
    "hierarchic"     => FALSE,
    "group"          => "none",
    "parent" => array(
        "field"         => "result_id",
        "contentType"   => "result"
    ),
    "search"         => null,
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "Jury group Label",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name" => "juryGroupMembers",
            "label" => "Jury group members",
            "type" => "repeater",
            "objectType" => "jury_group_member",
            "order" => true,
            "maxSize"   => 20,
        ],
    ],
    "actions"        => [
        "insert", "edit", "delete"
    ]
];
