Add HTML5 date field support.

This commit is contained in:
cviebrock
2012-02-01 00:16:05 -06:00
parent 96b43e90b3
commit 2d413044e8

View File

@@ -304,6 +304,19 @@ class Form {
{
return static::input('number', $name, $value, $attributes);
}
/**
* Create a HTML date input element.
*
* @param string $name
* @param string $value
* @param array $attributes
* @return string
*/
public static function date($name, $value = null, $attributes = array())
{
return static::input('date', $name, $value, $attributes);
}
/**
* Create a HTML file input element.