mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Added 'integer' => 'number'
for HTML5
Located in $map in the `FormHelper::input()` method. This means that if a field input is related to an integer column in the database, it will show up as a number input in the HTML5 form (where supported) yet gracefully degrade.
This commit is contained in:
parent
cfd2d9e00b
commit
333f36585b
1 changed files with 2 additions and 1 deletions
|
@ -917,7 +917,8 @@ class FormHelper extends AppHelper {
|
|||
'string' => 'text', 'datetime' => 'datetime',
|
||||
'boolean' => 'checkbox', 'timestamp' => 'datetime',
|
||||
'text' => 'textarea', 'time' => 'time',
|
||||
'date' => 'date', 'float' => 'text'
|
||||
'date' => 'date', 'float' => 'text',
|
||||
'integer' => 'number'
|
||||
);
|
||||
|
||||
if (isset($this->map[$type])) {
|
||||
|
|
Loading…
Reference in a new issue