<?php
return array(
    "type" => "qa_block",
    "model" => "QuestionAnswerBlock",
    "label" => "QA Blocks",
    "label_singular" => "QA Block",
    "group" => "general",
    "template" => false,
    "order" => true,
    "fields" => array(
        array(
            "name" => "title",
            "label" => "Título",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:150",
            "info" => "",
            "inList" => true,
            "search" => true,
        ),
        array(
            "name" => "subtitle",
            "label" => "Título",
            "type" => "textBox",
            "maxLength" => 250,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:250",
            "info" => "",
            "inList" => true,
            "search" => true
        ),
        array(
            "name" => "description",
            "label" => "Descrição",
            "type" => "textBox",
            "maxLength" => 250,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:250",
            "info" => "",
            "inList" => true,
            "search" => true
        ),
        array(
            "name"        => "questionsAnswers",
            "label"       => "Questions Answers",
            "type"        => "singlePicker",
            "allowInsert" => false,
            "objectType" => 'qa',
            "order"       => true,
            "max"         => 10,
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
