<?php
return array(
    "type"           => "climate_week_template_configuration",
    "model"          => "App\Models\ClimateWeekTemplateConfiguration",
    "label"          => "Climate Week Template Configuration",
    "label_singular" => "Climate Week Template Configuration",
    "parent"         => array(
        "field"       => "entry_id",
        "contentType" => "page"
    ),
    "group"     => "none",
    "template"  => false,
    "order"     => false,
    "websites"  => array(1),
    "shareable" => "none",
    "fields"    => array(
        array(
            "name"          => "title",
            "label"         => "Title",
            "type"          => "textBox",
            "maxLength"     => 200,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:200",
        ),
        array(
            "name"          => "frontend_title",
            "label"         => "Frontend Title",
            "type"          => "textBox",
            "maxLength"     => 200,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:200",
        ),
        array(
            "name"          => "subtitle",
            "label"         => "Subitle",
            "type"          => "textBox",
            "maxLength"     => 200,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:200",
        ),
        array(
            "name"          => "top_right_content",
            "label"         => "Top Right Content",
            "type"          => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim|xss_clean",
            "validation"    => "",
        ),
        array(
            "name"          => "map_title",
            "label"         => "Map Block Title",
            "type"          => "textBox",
            "maxLength"     => 200,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:200",
        ),
        array(
            "name"          => "bottom_left_title",
            "label"         => "Bottom Left Title",
            "type"          => "textBox",
            "maxLength"     => 200,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:200",
        ),
        array(
            "name"          => "bottom_right_content",
            "label"         => "Bottom Right Content",
            "type"          => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim|xss_clean",
            "validation"    => "",
        ),
        array(
            "name"        => "contact_id",
            "label"       => "contact",
            "type"        => "selectBox",
            "contentType" => "contact",
            "labelField"  => "name",
            "dropdownSortField" => "contacts.name",
            "validation"  => "nullable|integer",
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
