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:
Dean Sofer 2011-07-26 01:39:56 -07:00
parent cfd2d9e00b
commit 333f36585b

View file

@ -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])) {