From 8947efc351396e07265a7715bd79d3a71512a6f6 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Wed, 9 Nov 2016 11:57:44 +0100 Subject: [PATCH] Improve input mask. --- module/dca/tl_leaflet_layer.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/module/dca/tl_leaflet_layer.php b/module/dca/tl_leaflet_layer.php index f856829..7f867b4 100644 --- a/module/dca/tl_leaflet_layer.php +++ b/module/dca/tl_leaflet_layer.php @@ -218,13 +218,14 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array 'config' => array( 'overpassQuery', 'overpassEndpoint', - 'overpassCallback', 'minZoom', + 'overpassCallback', ), '+expert' => array( 'minZoomIndicatorPosition', - 'minZoomIndicatorMessageNoLayer', + 'debug', 'minZoomIndicatorMessage', + 'minZoomIndicatorMessageNoLayer', ), ), ), @@ -816,7 +817,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array 'exclude' => true, 'inputType' => 'text', 'default' => '', - 'eval' => array('tl_class' => 'long'), + 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''" ), 'overpassCallback' => array @@ -851,7 +852,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array 'exclude' => true, 'inputType' => 'text', 'default' => '', - 'eval' => array('tl_class' => 'long'), + 'eval' => array('tl_class' => 'clr w50'), 'sql' => "varchar(255) NOT NULL default ''" ), 'minZoomIndicatorMessageNoLayer' => array @@ -860,8 +861,17 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array 'exclude' => true, 'inputType' => 'text', 'default' => '', - 'eval' => array('tl_class' => 'long'), + 'eval' => array('tl_class' => 'w50'), 'sql' => "varchar(255) NOT NULL default ''" ), + 'debug' => array + ( + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['debug'], + 'exclude' => true, + 'inputType' => 'checkbox', + 'default' => false, + 'eval' => array('tl_class' => 'w50 m12'), + 'sql' => "char(1) NOT NULL default ''" + ), ) );