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
Pixel Humain
survey
Commits
d2178359
Commit
d2178359
authored
Mar 07, 2020
by
Tibor Katelbach
Browse files
title mapping connect to answer through element.costum.form.title path to corresponding input
parent
e78e5193
Changes
1
Hide whitespace changes
Inline
Side-by-side
views/tpls/forms/cplx/answers.php
View file @
d2178359
...
...
@@ -20,11 +20,18 @@
if
(
!
empty
(
$allAnswers
)){
foreach
(
$allAnswers
as
$k
=>
$ans
)
{
$ct
++
;
?>
$lbl
=
$what
.
" "
.
$ct
;
if
(
isset
(
Yii
::
app
()
->
session
[
"costum"
][
"form"
][
"title"
]))
{
$titlePath
=
explode
(
"."
,
Yii
::
app
()
->
session
[
"costum"
][
"form"
][
"title"
]
);
if
(
isset
(
$ans
[
"answers"
][
$titlePath
[
0
]][
$titlePath
[
1
]]))
$lbl
=
$ans
[
"answers"
][
$titlePath
[
0
]][
$titlePath
[
1
]];
}
?>
<li
class=
"answerLi col-xs-12"
>
<div
class=
"col-xs-3 text-center"
>
<a
href=
"
<?php
echo
Yii
::
app
()
->
createUrl
(
"/costum"
)
?>
/co/index/slug/
<?php
echo
$el
[
"slug"
]
?>
/answer/
<?php
echo
$ans
[
"_id"
]
?>
"
>
<?php
echo
$lbl
.
" "
.
$ct
?>
</a>
<a
href=
"
<?php
echo
Yii
::
app
()
->
createUrl
(
"/costum"
)
?>
/co/index/slug/
<?php
echo
$el
[
"slug"
]
?>
/answer/
<?php
echo
$ans
[
"_id"
]
?>
"
>
<?php
echo
$lbl
?>
</a>
</div>
<?php
$lblp
=
""
;
...
...
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