[TASK] Improve number fields in the setup module 18/57318/2
authorGeorg Ringer <georg.ringer@gmail.com>
Fri, 22 Jun 2018 21:25:40 +0000 (23:25 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 22 Jun 2018 21:56:37 +0000 (23:56 +0200)
Improve fields holding numbers in the setup module by using the type "number"
and reducing the size.

Resolves: #68301
Releases: master
Change-Id: Ibc55e5d30e9714c7c775e2a82480d7b84cf4420a
Reviewed-on: https://review.typo3.org/57318
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/setup/Classes/Controller/SetupModuleController.php
typo3/sysext/setup/ext_tables.php

index 2a33b38..c5e2dae 100644 (file)
@@ -518,6 +518,7 @@ class SetupModuleController
 
             switch ($type) {
                 case 'text':
+                case 'number':
                 case 'email':
                 case 'password':
                     $noAutocomplete = '';
index ac6ebee..c47df48 100644 (file)
@@ -82,7 +82,8 @@ $GLOBALS['TYPO3_USER_SETTINGS'] = [
             'csh' => 'showThumbs'
         ],
         'titleLen' => [
-            'type' => 'text',
+            'type' => 'number',
+            'class' => 'form-control-adapt',
             'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:maxTitleLen',
             'csh' => 'maxTitleLen'
         ],
@@ -102,7 +103,8 @@ $GLOBALS['TYPO3_USER_SETTINGS'] = [
             'csh' => 'showHiddenFilesAndFolders'
         ],
         'copyLevels' => [
-            'type' => 'text',
+            'type' => 'number',
+            'class' => 'form-control-adapt',
             'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:copyLevels',
             'csh' => 'copyLevels'
         ],
@@ -128,7 +130,8 @@ $GLOBALS['TYPO3_USER_SETTINGS'] = [
             'csh' => 'resizeTextareas_Flexible'
         ],
         'resizeTextareas_MaxHeight' => [
-            'type' => 'text',
+            'type' => 'number',
+            'class' => 'form-control-adapt',
             'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:flexibleTextareas_MaxHeight',
             'csh' => 'flexibleTextareas_MaxHeight'
         ],