<?php

/**
 * eSales Media Formilicious for Contao Open Source CMS
 *
 * Copyright (C) 2013-2014 eSalesMedia
 *
 * @package    eSM_formilicious
 * @link       http://www.esales-media.de
 * @license    http://www.gnu.org/licenses/lgpl-3.0.html LGPL
 *
 * @author     Benjamin Roth <benjamin@esales-media.de>
 */


/**
 * Add fields to tl_module
 */
$GLOBALS['TL_DCA']['tl_module']['fields']['editable'] = array
(
	'label'                   => &$GLOBALS['TL_LANG']['tl_module']['editable'],
	'exclude'                 => true,
	'inputType'               => 'multiColumnWizard',
//	'options_callback'        => array('tl_module', 'getEditableMemberProperties'),
	'eval' 			          => array
	(
		'columnFields' => array
		(
			'eSM_editable' => array
			(
				'label'                 => &$GLOBALS['TL_LANG']['tl_module']['eSM_editable_field'],
				'exclude'               => true,
				'inputType'             => 'select',
				'options_callback'      => array('tl_module', 'getEditableMemberProperties'),
				'eval'                  => array('style'=>'width:250px', 'includeBlankOption'=>true, 'chosen'=>true, 'mandatory'=>true)
			),
			'eSM_class' => array
			(
				'label'                 => &$GLOBALS['TL_LANG']['tl_module']['eSM_editable_col'],
				'exclude'               => true,
				'inputType'             => 'select',
				'options'               => array(10, 11, 15, '16_5', 20, 22, 25, 30, 33, 35, 40, 44, 45, 50, 55, 60, 65, 66, 70, 75, 80, 85, 90, 95, 100),
				'eval'                  => array('style'=>'width:50px', 'includeBlankOption'=>true)
			),
			'eSM_clr' => array
			(
				'label'                 => &$GLOBALS['TL_LANG']['tl_module']['eSM_editable_clear'],
				'exclude'               => true,
				'inputType'             => 'checkbox'
			),
			'eSM_mandatory' => array
			(
				'label'                 => &$GLOBALS['TL_LANG']['tl_module']['eSM_editable_mandatory'],
				'exclude'               => true,
				'inputType'             => 'checkbox'
			)
		),
		'tl_class' => ''
	),
	'sql'                     => "blob NULL"
);