Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
2da478cc
Commit
2da478cc
authored
Jul 02, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added more html5 form elements.
parent
cd33e817
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
1 deletion
+52
-1
form.php
system/form.php
+52
-1
No files found.
system/form.php
View file @
2da478cc
...
@@ -194,6 +194,19 @@ class Form {
...
@@ -194,6 +194,19 @@ class Form {
return
static
::
input
(
'search'
,
$name
,
$value
,
$attributes
);
return
static
::
input
(
'search'
,
$name
,
$value
,
$attributes
);
}
}
/**
* 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.
* Create a HTML number input element.
*
*
...
@@ -207,6 +220,19 @@ class Form {
...
@@ -207,6 +220,19 @@ class Form {
return
static
::
input
(
'number'
,
$name
,
$value
,
$attributes
);
return
static
::
input
(
'number'
,
$name
,
$value
,
$attributes
);
}
}
/**
* 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.
* Create a HTML telephone input element.
*
*
...
@@ -220,6 +246,19 @@ class Form {
...
@@ -220,6 +246,19 @@ class Form {
return
static
::
input
(
'tel'
,
$name
,
$value
,
$attributes
);
return
static
::
input
(
'tel'
,
$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.
* Create a HTML file input element.
*
*
...
@@ -235,7 +274,7 @@ class Form {
...
@@ -235,7 +274,7 @@ class Form {
/**
/**
* Create a HTML submit input element.
* Create a HTML submit input element.
*
*
* @param string $
nam
e
* @param string $
valu
e
* @param array $attributes
* @param array $attributes
* @return string
* @return string
*/
*/
...
@@ -244,6 +283,18 @@ class Form {
...
@@ -244,6 +283,18 @@ class Form {
return
static
::
input
(
'submit'
,
null
,
$value
,
$attributes
);
return
static
::
input
(
'submit'
,
null
,
$value
,
$attributes
);
}
}
/**
* 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.
* Create a HTML button element.
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment