Commit 2da478cc by Taylor Otwell

added more html5 form elements.

parent cd33e817
......@@ -195,6 +195,19 @@ class Form {
}
/**
* Create a HTML color input element.
*
* @param string $name
* @param string $value
* @param array $attributes
* @return string
*/
public static function color($name, $value = null, $attributes = array())
{
return static::input('color', $name, $value, $attributes);
}
/**
* Create a HTML number input element.
*
* @param string $name
......@@ -208,6 +221,19 @@ class Form {
}
/**
* Create a HTML range input element.
*
* @param string $name
* @param string $value
* @param array $attributes
* @return string
*/
public static function range($name, $value = null, $attributes = array())
{
return static::input('range', $name, $value, $attributes);
}
/**
* Create a HTML telephone input element.
*
* @param string $name
......@@ -221,6 +247,19 @@ class Form {
}
/**
* 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.
*
* @param string $name
......@@ -235,7 +274,7 @@ class Form {
/**
* Create a HTML submit input element.
*
* @param string $name
* @param string $value
* @param array $attributes
* @return string
*/
......@@ -245,6 +284,18 @@ class Form {
}
/**
* Create a HTML reset input element.
*
* @param string $value
* @param array $attributes
* @return string
*/
public static function reset($value, $attributes = array())
{
return static::input('reset', null, $value, $attributes);
}
/**
* Create a HTML button element.
*
* @param string $name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment