<?php

return [
    "type"           => "openPositionSpec",
    "model"          => App\Models\GenericBackoffice\OpenPositionSpec::class,
    "label"          => "Open Position Specs",
    "label_singular" => "Open Position Spec",
    "group"          => "extras",
    "order"          => FALSE,
    "showSlug"       => TRUE,
    "showUri"        => FALSE,

    "fields"         => [
        [
            "name"          => "title",
            "label"         => "Backend Title",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "spec_title",
            "label"         => "Spec Title",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => FALSE,
            "sort"          => FALSE
        ],
        [
            "name"          => "text_wysiwyg",
            "label"         => "Spec Text",
            "type"          => "editor",
            "multiLanguage" => TRUE,
            "preValidation" => "xss_clean|trim",
            "validation"    => "",
            "inList"        => FALSE,
            "search"        => FALSE,
            "sort"          => FALSE
        ]
    ],
    "actions"        => [
        "insert", "edit", "delete"
    ]
];
