<?php
return array(
    "type" => "block_agenda_item",
    "model" => "BlockAgendaItem",
    "label" => "Agenda Items",
    "label_singular" => "Agenda Item",
    "template" => false,
    "order" => false,
    "group" => "none",
    "parent" => array(
        "field" => "block_id",
        "contentType" => "Block"
    ),
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:255",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "time_label",
            "label" => "Time label",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
        ),
        array(
            "name" => "speakers_label",
            "label" => "Speakers label",
            "type" => "textBox",
            "maxLength" => 60,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:60",
            "info" => "Max 60 chars"
        ),
        array(
            "name" => "content",
            "label" => "content",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim",
            "validation" => ""
        ),
        array(
            "name" => "agendaSpeakers",
            "label" => "Speakers",
            "type" => "singlePicker",
            "objectType" => "agenda_speaker",
            "order" => true
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
