From: Nicolas Boisselier Date: Thu, 16 Jun 2016 15:52:48 +0000 (+0200) Subject: edit X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=90e292f0b28c4d2654bd63d3ed293f904b29789e;p=nb.git edit --- diff --git a/lib/php/db/field.php b/lib/php/db/field.php index 7e77621e..a283b75d 100644 --- a/lib/php/db/field.php +++ b/lib/php/db/field.php @@ -51,7 +51,7 @@ class field extends nb { public function html_type() { # See: http://www.w3schools.com/html/html_form_input_types.asp if (strpos($this->name,'password') !== false) return 'password'; - if ($this->numeric() !== false) return 'number'; + if ($this->numeric() !== false) return 'number" step="any'; return 'text'; # Html5 only if (strpos($this->name,'email') !== false) return 'email'; # no safari