<?php
return array(
    "type" => "yield_evolution",
    "model" => "YieldEvolution",
    "label" => "Yield Evolution",
    "label_singular" => "Yield Evolution",
    "group" => "none",
    "template" => false,
    "order" => false,
    "parent" => array(
        "field" => "question_one_template_configuration_id",
        "contentType" => "q_one_configuration"  
    ),
    "fields" => array(
        array(
            "name" => "title",
            "label" => "Título",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
            "validation" => "required|max:150",
            "info" => ""
        ),
        array(
            "name" => "value",
            "label" => "Value",
            "type" => "textBox",
            "maxLength" => 20,
            "multiLanguage" => false,
            "preValidation" => "xss_clean|trim",
            "validation" => "numeric|required",
            "info" => ""
        ),
        array(
            "name" => "year",
            "label" => "Year",
            "type" => "textBox",
            "maxLength" => 20,
            "multiLanguage" => false,
            "preValidation" => "xss_clean|trim",
            "validation" => "numeric|required",
            "info" => ""
        ),
        array(
            "name" => "description",
            "label" => "Description",
            "type" => "textArea",
            "maxLength" => 2000,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:2000",
            "info" => ""
        ),
        array(
            "name" => "image",
            "label" => "Image",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "multiple" => false,
            "minSize" => "0",
            "thumbnailSizes" => array(
              array("type" => "fit", "name" => "100", "width" => 100, "height" => null),
            ),
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);