added more html5 form elements.
This commit is contained in:
parent
2da478cc38
commit
f7dcb05799
|
@ -19,7 +19,6 @@
|
|||
|
||||
'GET /' => function()
|
||||
{
|
||||
return Form::input('email', 'email', '', array('required', 'class' => 'awesome'));
|
||||
return View::make('home/index');
|
||||
},
|
||||
|
||||
|
|
|
@ -259,6 +259,45 @@ public static function date($name, $value = null, $attributes = array())
|
|||
return static::input('date', $name, $value, $attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a HTML time input element.
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $value
|
||||
* @param array $attributes
|
||||
* @return string
|
||||
*/
|
||||
public static function time($name, $value = null, $attributes = array())
|
||||
{
|
||||
return static::input('time', $name, $value, $attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a HTML datetime input element.
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $value
|
||||
* @param array $attributes
|
||||
* @return string
|
||||
*/
|
||||
public static function datetime($name, $value = null, $attributes = array())
|
||||
{
|
||||
return static::input('datetime', $name, $value, $attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a HTML local datetime input element.
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $value
|
||||
* @param array $attributes
|
||||
* @return string
|
||||
*/
|
||||
public static function datetime_local($name, $value = null, $attributes = array())
|
||||
{
|
||||
return static::input('datetime-local', $name, $value, $attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a HTML file input element.
|
||||
*
|
||||
|
@ -295,6 +334,18 @@ public static function reset($value, $attributes = array())
|
|||
return static::input('reset', null, $value, $attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a HTML image input element.
|
||||
*
|
||||
* @param string $value
|
||||
* @param array $attributes
|
||||
* @return string
|
||||
*/
|
||||
public static function image($value, $attributes = array())
|
||||
{
|
||||
return static::input('image', null, $value, $attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a HTML button element.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue