Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
59c1b246
Commit
59c1b246
authored
Jan 30, 2018
by
Elias Villiger
Browse files
Add min/max attributes to date input tag
parent
6f7759c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/AbstractBuildForm.php
View file @
59c1b246
...
...
@@ -3082,8 +3082,6 @@ abstract class AbstractBuildForm {
$attribute
.
=
Support
::
doAttribute
(
'name'
,
$htmlFormElementName
);
$attribute
.
=
Support
::
doAttribute
(
'class'
,
'form-control'
);
$arrMinMax
=
null
;
$this
->
adjustMaxLength
(
$formElement
);
$showTime
=
(
$formElement
[
FE_TYPE
]
==
'time'
||
$formElement
[
FE_TYPE
]
==
'datetime'
)
?
1
:
0
;
if
(
$value
==
'CURRENT_TIMESTAMP'
)
{
...
...
@@ -3150,11 +3148,7 @@ abstract class AbstractBuildForm {
$attribute
.
=
Support
::
doAttribute
(
'data-load'
,
(
$formElement
[
FE_DYNAMIC_UPDATE
]
===
'yes'
)
?
'data-load'
:
''
);
$attribute
.
=
Support
::
doAttribute
(
'title'
,
$formElement
[
FE_TOOLTIP
]);
$attribute
.
=
$this
->
getInputCheckPattern
(
$formElement
[
FE_CHECK_TYPE
],
$formElement
[
FE_CHECK_PATTERN
]);
if
(
is_array
(
$arrMinMax
))
{
$attribute
.
=
Support
::
doAttribute
(
'min'
,
$arrMinMax
[
0
]);
$attribute
.
=
Support
::
doAttribute
(
'max'
,
$arrMinMax
[
1
]);
}
$attribute
.
=
$this
->
getAttributeList
(
$formElement
,
[
FE_MIN
,
FE_MAX
]);
$json
=
$this
->
getFormElementForJson
(
$htmlFormElementName
,
$value
,
$formElement
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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