<?php
return array(
    "type" => "pardot_form",
    "model" => "PardotForm",
    "label" => "pardot forms",
    "label_singular" => "pardot form",
    "group" => "communicating",
    "template" => false,
    "order" => false,
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title",
            "type" => "textBox",
            "maxLength" => 50,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:50",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "extra_title",
            "label" => "Extra Title",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150",
            "info" => "Used to pass Webinar and Event Titles to Pardot when CTA is independent"
        ),
        array(
          "name" => "type",
          "label" => "Form Type",
          "type" => "selectBox",
          "list" => array(
              "regular" => "Regular",
              "file" => "File Download",
              "webinar" => "Webinar",
              "event" => "Event"
          ),
          "preValidation" => "trim",
          "validation" => "required|in:regular,file,webinar,event",
          "placement" => "sidebar",
          "inList" => true,
          "search" => true,
          "sort" => true
        ),
        /*
        array(
            "name" => "width",
            "label" => "Iframe Width",
            "type" => "textBox",
            "maxLength" => 20,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:20",
            "inList" => false,
            "placement" => "sidebar",
            "search" => false,
            "sort" => true
        ),
        array(
          "name" => "height",
          "label" => "Iframe Height",
          "type" => "textBox",
          "maxLength" => 20,
          "multiLanguage" => false,
          "preValidation" => "strip_tags|xss_clean|trim",
          "validation" => "required|max:20",
          "inList" => false,
          "placement" => "sidebar",
          "search" => false,
          "sort" => true
        ),
        */
        array(
          "name" => "form_url",
          "label" => "Form Url",
          "type" => "textBox",
          "maxLength" => 255,
          "multiLanguage" => true,
          "preValidation" => "strip_tags|xss_clean|trim",
          "validation" => "required|url|max:255",
          "inList" => false,
        ),
    ),
    "actions" => array(
        "insert", "edit", "duplicate", "delete"
    )
);
