<?php

/**
 * Tweaks for Contao
 *
 * Copyright (c) 2016 Benjamin Roth [http://www.esales-media.de]
 *
 * @package eSM_tweaks
 * @link    http://www.esales-media.de
 * @license commercial
 */

$GLOBALS['TL_DCA']['tl_iso_address']['palettes']['default'] = str_replace('vat_no','cust_no_erp,vat_no',$GLOBALS['TL_DCA']['tl_iso_address']['palettes']['default']);


$GLOBALS['TL_DCA']['tl_iso_address']['fields']['firstname']['eval']['eSM_fl_width'] = '50';
$GLOBALS['TL_DCA']['tl_iso_address']['fields']['lastname']['eval']['eSM_fl_width'] = '50';
$GLOBALS['TL_DCA']['tl_iso_address']['fields']['company']['eval']['eSM_fl_width'] = '50';
$GLOBALS['TL_DCA']['tl_iso_address']['fields']['street_1']['eval']['eSM_fl_width'] = '50';
$GLOBALS['TL_DCA']['tl_iso_address']['fields']['postal']['eval']['eSM_fl_width'] = '15';
$GLOBALS['TL_DCA']['tl_iso_address']['fields']['city']['eval']['eSM_fl_width'] = '35';
$GLOBALS['TL_DCA']['tl_iso_address']['fields']['country']['eval']['eSM_fl_width'] = '50';
$GLOBALS['TL_DCA']['tl_iso_address']['fields']['phone']['eval']['eSM_fl_width'] = '50';
$GLOBALS['TL_DCA']['tl_iso_address']['fields']['email']['eval']['eSM_fl_width'] = '100';
$GLOBALS['TL_DCA']['tl_iso_address']['fields']['dateOfBirth']['eval']['eSM_fl_width'] = '50';
$GLOBALS['TL_DCA']['tl_iso_address']['fields']['dateOfBirth']['eval']['eSM_fl_fieldClass'] = 'picker-date';

/*$GLOBALS['TL_DCA']['tl_iso_address']['fields']['cust_no_erp'] = array
(
  'label'                 => &$GLOBALS['TL_LANG']['tl_iso_address']['cust_no_erp'],
  'exclude'               => true,
  'search'                => true,
  'inputType'             => 'text',
  'eval'                  => array('maxlength'=>255, 'feEditable'=>true, 'feGroup'=>'address', 'tl_class'=>'w50', 'eSM_fl_width' => '50'),
  'sql'                   => "varchar(255) NOT NULL default ''",
);*/