<?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;{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')
);