<?php

    return [
        "type"           => "locations",
        "model"          => "Location",
        "label"          => "Locations",
        "label_singular" => "Location",
        "group"          => "taxonomy",
        "order"          => TRUE,
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Location Name",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "location_lat",
                "label"         => "Latitude",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => FALSE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "location_lng",
                "label"         => "Longitude",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => FALSE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name" => "country_id",
                "label" => "country",
                "type" => "selectBox",
                "contentType" => "countries",
                "preValidation" => "trim",
                "validation" => "required|integer|min:1",
                "inList" => true,
                "search" => true,
                "sort" => true,
                "boxSearch" => true,
                "placement" => "sidebar",
                "allowInsert" => true
            ],
        ],
        "actions"        => [
            "edit", "order", "insert", "delete"
        ]
    ];
