From 9e54f12555b6b82b618f02c4b2b154df7bce6c1c Mon Sep 17 00:00:00 2001 From: David Molineus Date: Fri, 19 Oct 2018 16:37:49 +0200 Subject: [PATCH] Use TL_CSS_UNITS for with and height option (#59). --- src/Bundle/Resources/contao/dca/tl_content.php | 4 ++-- src/Bundle/Resources/contao/dca/tl_module.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Bundle/Resources/contao/dca/tl_content.php b/src/Bundle/Resources/contao/dca/tl_content.php index 8c922c5..2d8cfb9 100644 --- a/src/Bundle/Resources/contao/dca/tl_content.php +++ b/src/Bundle/Resources/contao/dca/tl_content.php @@ -49,7 +49,7 @@ $GLOBALS['TL_DCA']['tl_content']['fields']['leaflet_mapId'] = [ $GLOBALS['TL_DCA']['tl_content']['fields']['leaflet_width'] = [ 'label' => &$GLOBALS['TL_LANG']['tl_content']['leaflet_width'], 'inputType' => 'inputUnit', - 'options' => ['px', '%', 'em', 'pt', 'pc', 'in', 'cm', 'mm'], + 'options' => $GLOBALS['TL_CSS_UNITS'], 'search' => false, 'exclude' => true, 'eval' => ['rgxp' => 'digit', 'tl_class' => 'clr w50'], @@ -60,7 +60,7 @@ $GLOBALS['TL_DCA']['tl_content']['fields']['leaflet_width'] = [ $GLOBALS['TL_DCA']['tl_content']['fields']['leaflet_height'] = [ 'label' => &$GLOBALS['TL_LANG']['tl_content']['leaflet_height'], 'inputType' => 'inputUnit', - 'options' => ['px', '%', 'em', 'pt', 'pc', 'in', 'cm', 'mm'], + 'options' => $GLOBALS['TL_CSS_UNITS'], 'search' => false, 'exclude' => true, 'eval' => ['rgxp' => 'digit', 'tl_class' => 'w50'], diff --git a/src/Bundle/Resources/contao/dca/tl_module.php b/src/Bundle/Resources/contao/dca/tl_module.php index b4c9dd1..0601776 100644 --- a/src/Bundle/Resources/contao/dca/tl_module.php +++ b/src/Bundle/Resources/contao/dca/tl_module.php @@ -49,7 +49,7 @@ $GLOBALS['TL_DCA']['tl_module']['fields']['leaflet_mapId'] = [ $GLOBALS['TL_DCA']['tl_module']['fields']['leaflet_width'] = [ 'label' => &$GLOBALS['TL_LANG']['tl_module']['leaflet_width'], 'inputType' => 'inputUnit', - 'options' => ['px', '%', 'em', 'pt', 'pc', 'in', 'cm', 'mm'], + 'options' => $GLOBALS['TL_CSS_UNITS'], 'search' => false, 'exclude' => true, 'eval' => ['rgxp' => 'digit', 'tl_class' => 'clr w50'], @@ -60,7 +60,7 @@ $GLOBALS['TL_DCA']['tl_module']['fields']['leaflet_width'] = [ $GLOBALS['TL_DCA']['tl_module']['fields']['leaflet_height'] = [ 'label' => &$GLOBALS['TL_LANG']['tl_module']['leaflet_height'], 'inputType' => 'inputUnit', - 'options' => ['px', '%', 'em', 'pt', 'pc', 'in', 'cm', 'mm'], + 'options' => $GLOBALS['TL_CSS_UNITS'], 'search' => false, 'exclude' => true, 'eval' => ['rgxp' => 'digit', 'tl_class' => 'w50'],