<?php

return [
    "type"           => "executing_party_group",
    "model"          => App\Models\ExecutingPartyGroup::class,
    "label"          => "content_types.executing_party_group_plural",
    "label_singular" => "content_types.executing_party_group_singular",
    "hierarchic"     => FALSE,
    "group"          => "none",
    "parent" => array(
        "field"         => "tracked_result_id",
        "contentType"   => "tracked_result"
    ),
    "search"         => null,
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "content_types.executing_party_group_name",
            "type"          => "textBox",
            "maxLength"     => 50,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:50",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "discipline_id",
            "label"         => "content_types.department",
            "type"          => "selectBox",
            "contentType"   => "discipline",
            "contentField"  => "title",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "nullable",
        ],
        [
            "name" => "executingPartyGroupCompany",
            "label" => "content_types.companies",
            "type" => "repeater",
            "objectType" => "executing_party_group_company",
            "order" => true,
            "maxSize"   => 20,
        ],
        [
            "name" => "executingPartyGroupMember",
            "label" => "content_types.executing_party_group_members",
            "type" => "repeater",
            "objectType" => "executing_party_group_member",
            "order" => true,
            "maxSize"   => 20,
        ],
    ],
    "actions"        => [
        "insert", "edit", "delete"
    ]
];
