Skip to content
GitLab
Menu
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
fc1931e5
Commit
fc1931e5
authored
Feb 07, 2017
by
Carsten Rose
Browse files
HelperFormElement.php: migrate to use validator.js function to do 'match' comparison
parent
12cdab3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/AbstractBuildForm.php
View file @
fc1931e5
...
@@ -384,6 +384,8 @@ abstract class AbstractBuildForm {
...
@@ -384,6 +384,8 @@ abstract class AbstractBuildForm {
$this
->
fillWrapLabelInputNote
(
$label
,
$input
,
$note
);
$this
->
fillWrapLabelInputNote
(
$label
,
$input
,
$note
);
}
}
//TODO: hier den Defaultvalue fuer RETYPE Elemente bestimmen.
// Get default value
// Get default value
$value
=
(
$formElement
[
FE_VALUE
]
===
''
)
?
$this
->
store
->
getVar
(
$formElement
[
'name'
],
$storeUse
,
$value
=
(
$formElement
[
FE_VALUE
]
===
''
)
?
$this
->
store
->
getVar
(
$formElement
[
'name'
],
$storeUse
,
$formElement
[
'checkType'
])
:
$formElement
[
FE_VALUE
];
$formElement
[
'checkType'
])
:
$formElement
[
FE_VALUE
];
...
@@ -666,9 +668,14 @@ abstract class AbstractBuildForm {
...
@@ -666,9 +668,14 @@ abstract class AbstractBuildForm {
$attribute
=
Support
::
doAttribute
(
'name'
,
$htmlFormElementId
);
$attribute
=
Support
::
doAttribute
(
'name'
,
$htmlFormElementId
);
$attribute
.
=
Support
::
doAttribute
(
'class'
,
'form-control'
);
$attribute
.
=
Support
::
doAttribute
(
'class'
,
'form-control'
);
if
(
isset
(
$formElement
[
FE_RETYPE
])
&&
$formElement
[
FE_RETYPE
]
==
'1'
)
{
// if (isset($formElement[FE_RETYPE]) && $formElement[FE_RETYPE] == '1') {
$htmlFormElementIdRetype
=
str_replace
(
$formElement
[
FE_NAME
],
$formElement
[
FE_NAME
]
.
RETYPE_FE_NAME_EXTENSION
,
$htmlFormElementId
);
// $htmlFormElementIdRetype = str_replace($formElement[FE_NAME], $formElement[FE_NAME] . RETYPE_FE_NAME_EXTENSION, $htmlFormElementId);
$attribute
.
=
Support
::
doAttribute
(
'data-compare-element'
,
$htmlFormElementIdRetype
);
// $attribute .= Support::doAttribute('data-compare-element', $htmlFormElementIdRetype);
// }
if
(
substr
(
$formElement
[
FE_NAME
],
-
6
)
==
RETYPE_FE_NAME_EXTENSION
)
{
$htmlFormElementIdPrimary
=
str_replace
(
RETYPE_FE_NAME_EXTENSION
,
''
,
$htmlFormElementId
);
$attribute
.
=
Support
::
doAttribute
(
'data-match'
,
'[name='
.
str_replace
(
':'
,
'\\:'
,
$htmlFormElementIdPrimary
)
.
']'
);
}
}
// Check for input type 'textarea'
// Check for input type 'textarea'
...
...
Write
Preview
Supports
Markdown
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