Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
survey
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pixel Humain
survey
Commits
8a080313
Commit
8a080313
authored
Jun 24, 2020
by
Raph El
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Form : Hotfix multi save
parent
0a6eba0d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
134 additions
and
134 deletions
+134
-134
views/tpls/forms/cplx/multiCheckboxPlus.php
views/tpls/forms/cplx/multiCheckboxPlus.php
+3
-3
views/tpls/forms/cplx/multiRadio.php
views/tpls/forms/cplx/multiRadio.php
+48
-48
views/tpls/forms/cplx/multitextvalidation.php
views/tpls/forms/cplx/multitextvalidation.php
+83
-83
No files found.
views/tpls/forms/cplx/multiCheckboxPlus.php
View file @
8a080313
...
...
@@ -105,7 +105,7 @@
<?php
$cle
=
$key
;
$value
=
(
!
empty
(
$answers
))
?
" value='"
.
$answers
.
"' "
:
""
;
$inpClass
=
" saveOneByOne"
;
...
...
@@ -440,7 +440,7 @@ jQuery(document).ready(function() {
mylog
.
log
(
"
render form input
"
,
"
/modules/costum/views/tpls/forms/cplx/multiCheckbox.php
"
);
answer
=
{};
$
(
'
.ckbCo
'
).
change
(
function
(){
$
(
'
#question
<?php
echo
$cle
?>
.ckbCo
'
).
change
(
function
(){
var
allckd
=
[];
// alert('
<?php
echo
$kunik
?>
'
);
$("input:checkbox[name=
'"
+$(this).attr(
"
name
"
)+
"'
]:checked").each(function(){
...
...
@@ -462,7 +462,7 @@ jQuery(document).ready(function() {
});
});
$(
'
.
inputckbCo
'
).keyup(function(){
$(
'
#
question
<?php
echo
$cle
?>
.
inputckbCo
'
).keyup(function(){
if($(
'
input
[
value
=
"
' + $(this).data(
"
imp
"
) + '
"
]
'
).is(
'
:
checked
'
)) {
var allckd = [];
...
...
views/tpls/forms/cplx/multiRadio.php
View file @
8a080313
...
...
@@ -93,7 +93,7 @@
<?php
$cle
=
$key
;
$value
=
(
!
empty
(
$answers
))
?
" value='"
.
$answers
.
"' "
:
""
;
$inpClass
=
" saveOneByOne"
;
...
...
@@ -383,7 +383,7 @@ jQuery(document).ready(function() {
mylog
.
log
(
"
render form input
"
,
"
/modules/costum/views/tpls/forms/cplx/multiCheckbox.php
"
);
answer
=
{};
$
(
'
.radioCo
'
).
change
(
function
(){
$
(
'
#question
<?php
echo
$cle
?>
.radioCo
'
).
change
(
function
(){
if
(
$
(
this
).
data
(
"
type
"
)
==
"
simple
"
){
answer
.
path
=
"
answers.
"
+
$
(
this
).
data
(
"
form
"
)
+
"
.
"
+
$
(
this
).
data
(
"
id
"
);
answer
.
collection
=
"
answers
"
;
...
...
@@ -403,7 +403,8 @@ jQuery(document).ready(function() {
}
});
$
(
'
.inputRadioCo
'
).
keyup
(
function
(){
$
(
'
#question
<?php
echo
$cle
?>
.inputRadioCo
'
).
keyup
(
function
(){
if
(
$
(
'
input[value="
'
+
$
(
this
).
data
(
"
imp
"
)
+
'
"]
'
).
is
(
'
:checked
'
))
{
console
.
log
(
'
here
'
);
answer
.
path
=
"
answers.
"
+
$
(
this
).
data
(
"
form
"
)
+
"
.
"
+
$
(
this
).
data
(
"
id
"
);
...
...
@@ -415,8 +416,7 @@ jQuery(document).ready(function() {
//toastr.success('saved');
}
);
}
})
});
sectionDyf
.
<?php
echo
$kunik
?>
Params
=
{
"
jsonSchema
"
:
{
...
...
views/tpls/forms/cplx/multitextvalidation.php
View file @
8a080313
...
...
@@ -194,7 +194,7 @@ if($mode == "r"){ ?>
}
else
{
?>
<div
class=
"input-grp "
style=
"position: relative; padding-top: 50px; text-transform: unset;"
>
<label
for=
"
<?php
echo
$key
?>
"
><h4
style=
"text-transform: unset; color
:
<?php
echo
(
$titleColor
)
?
$titleColor
:
"black"
;
?>
"
>
<?php
echo
$label
.
$editQuestionBtn
?>
</h4></label>
<label
for=
"
<?php
echo
$key
?>
"
><h4
style=
"text-transform: unset; color
<?php
echo
(
$titleColor
)
?
$titleColor
:
"black"
;
?>
"
>
<?php
echo
$kunik
;
?
><?php
echo
$label
.
$editQuestionBtn
?>
</h4></label>
<br/>
<div
class=
"multiinput"
data-validate=
"Valid email is required: ex@abc.xyz"
>
...
...
@@ -276,9 +276,7 @@ if($mode == "r"){ ?>
dyFObj.openForm( sectionDyf.
<?php
echo
$kunik
?>
Params,null, sectionDyf.
<?php
echo
$kunik
?>
ParamsData);
});
});
$('.effect-2').each(function(){
$('#question
<?php
echo
$key
?>
.effect-2').each(function(){
$(this).on('blur', function(){
if($(this).val().trim() !=
""
) {
$(this).addClass('has-val');
...
...
@@ -289,12 +287,11 @@ if($mode == "r"){ ?>
})
})
$('
.effect-2').each(function(){
$('#question
<?php
echo
$key
?>
.effect-2').each(function(){
$(this).on('blur', function(){
if(validate(this) == false){
showValidate(this);
}
else {
} else {
if($(this).attr('type') == 'email' ) {
$(this).parent().addClass('true-validate');
}
...
...
@@ -308,14 +305,17 @@ if($mode == "r"){ ?>
});
}
})
})
});
$('
.effect-2').each(function(){
$('#question
<?php
echo
$key
?>
.effect-2').each(function(){
$(this).focus(function(){
hideValidate(this);
$(this).parent().removeClass('true-validate');
});
});
});
function validate (input) {
if($(input).attr('type') == 'email' ) {
...
...
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