<?php
/*
* This file is part of contao-weinanlieferung-bundle.
*
* (c) vonRotenberg
*
* @license commercial
*/
use vonRotenberg\WeinanlieferungBundle\Controller\Frontend\Module\WeinanlieferungBookedListModuleController;
use vonRotenberg\WeinanlieferungBundle\Controller\Frontend\Module\WeinanlieferungSlotsListModuleController;
$GLOBALS['TL_DCA']['tl_module']['palettes'][WeinanlieferungSlotsListModuleController::TYPE] = '{title_legend},name,headline,type;{wa_config_legend},vr_wa_standortId;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},cssID';
$GLOBALS['TL_DCA']['tl_module']['palettes'][WeinanlieferungBookedListModuleController::TYPE] = '{title_legend},name,headline,type;{wa_config_legend},vr_wa_listPage;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},cssID';
$GLOBALS['TL_DCA']['tl_module']['fields']['vr_wa_standortId'] = array(
'exclude' => true,
'inputType' => 'checkbox',
'foreignKey' => 'tl_vr_wa_standort.title',
'eval' => array('mandatory' => true, 'multiple' => true,),
'sql' => "blob NULL",
'relation' => array('type' => 'hasMany', 'load' => 'lazy')
);
$GLOBALS['TL_DCA']['tl_module']['fields']['vr_wa_listPage'] = array(
'exclude' => true,
'inputType' => 'pageTree',
'foreignKey' => 'tl_page.title',
'eval' => array('fieldType'=>'radio', 'tl_class'=>'clr'),
'sql' => "int(10) unsigned NOT NULL default 0",
'relation' => array('type'=>'hasOne', 'load'=>'lazy')
);