Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Pixel Humain
survey
Commits
576775f9
Commit
576775f9
authored
Jun 25, 2020
by
Raph El
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cressRE' into qa
parents
f25a246e
e6e95dd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
36 deletions
+26
-36
views/tpls/forms/costum/community/emailist.php
views/tpls/forms/costum/community/emailist.php
+1
-1
views/tpls/forms/costum/community/wizard.php
views/tpls/forms/costum/community/wizard.php
+25
-35
No files found.
views/tpls/forms/costum/community/emailist.php
View file @
576775f9
...
...
@@ -127,7 +127,7 @@
inputType
:
"
text
"
,
label
:
"
Sujet
"
,
values
:
sectionDyf
.
<?php
echo
$kunik
?>
ParamsData
.
mail_type
}
}
,
mail_type
:
{
inputType
:
"
textarea
"
,
label
:
"
Mail type
"
,
...
...
views/tpls/forms/costum/community/wizard.php
View file @
576775f9
...
...
@@ -44,20 +44,20 @@ if( isset($this->costum["tpls"][$keyTpl]) ) {
foreach
(
$formList
as
$k
=>
$v
)
{
?>
<div
id=
'
<?php
echo
$v
?>
'
class=
'col-sm-offset-1 col-sm-10 sectionStep '
style=
"padding-bottom:40px"
>
<div
id=
'
<?php
echo
$v
?>
xx
'
class=
'col-sm-offset-1 col-sm-10 sectionStep '
style=
"padding-bottom:40px"
>
<?php
$form
=
PHDB
::
findOne
(
Form
::
COLLECTION
,[
"id"
=>
$v
]
);
?>
$form
=
PHDB
::
findOne
(
Form
::
COLLECTION
,[
"id"
=>
$v
]
);
?>
<script
type=
"text/javascript"
>
formInputs
[
"
<?php
echo
$v
?>
"
]
=
<?php
echo
json_encode
(
$form
[
'inputs'
]
);
?>
;
var
formInputsHere
=
formInputs
;
</script>
<?php
if
(
!
empty
(
$form
)
)
{
echo
'<h1 class="text-center" style="color:'
.
$color1
.
'" >'
.
@
$form
[
"name"
]
.
'</h1>'
;
<?php
if
(
!
empty
(
$form
)
)
{
echo
'<h1 class="text-center" style="color:'
.
$color1
.
'" >'
.
@
$form
[
"name"
]
.
'</h1>'
;
echo
"<div class='text-center'>"
;
if
(
isset
(
$this
->
costum
[
"cms"
][
$form
[
"id"
]
.
"desc"
]))
echo
htmlentities
(
$this
->
costum
[
"cms"
][
$form
[
"id"
]
.
"desc"
]);
...
...
@@ -67,24 +67,24 @@ var formInputsHere = formInputs;
echo
"<a class='btn btn-xs btn-danger editBtn' href='javascript:;' data-key='"
.
@
$form
[
"id"
]
.
"desc' data-type='textarea' data-markdown='1' data-path='costum.cms."
.
@
$form
[
"id"
]
.
"desc' data-label='Expliquez les objectifs de cette étape ? '> <i class='fa fa-pencil'></i></a>"
;
echo
"</div>"
;
//echo "<div class='markdown'>";
//echo "<div class='markdown'>";
echo
"<div class=''>"
;
echo
$this
->
renderPartial
(
"survey.views.tpls.forms.formSection"
,
[
"formId"
=>
$v
,
"form"
=>
$form
,
"wizard"
=>
false
,
"answer"
=>
$answer
,
echo
$this
->
renderPartial
(
"survey.views.tpls.forms.formSection"
,
[
"formId"
=>
$v
,
"form"
=>
$form
,
"wizard"
=>
false
,
"answer"
=>
$answer
,
"mode"
=>
"w"
,
"showForm"
=>
$showForm
,
"canEdit"
=>
$canEdit
,
"el"
=>
$el
]
,
true
);
echo
"</div>"
;
}
else
{
echo
""
;
}
?>
"showForm"
=>
$showForm
,
"canEdit"
=>
$canEdit
,
"el"
=>
$el
]
,
true
);
echo
"</div>"
;
}
else
{
echo
""
;
}
?>
</div>
<?php
}
...
...
@@ -99,23 +99,13 @@ jQuery(document).ready(function() {
descHtml
=
dataHelper
.
markdownToHtml
(
$
(
v
).
html
());
$
(
v
).
html
(
descHtml
);
});
// Todo BUG en nav private
if
(
localStorage
!==
null
&&
localStorage
.
wizardStep
!==
null
)
showStepForm
(
localStorage
.
wizardStep
);
});
function
showStepForm
(
id
){
mylog
.
log
(
"
showStepForm
"
,
id
);
$
(
"
.sectionStep
"
).
addClass
(
"
hide
"
);
$
(
id
).
removeClass
(
"
hide
"
);
localStorage
.
setItem
(
"
wizardStep
"
,
id
);
}
</script>
</div>
</div>
\ No newline at end of file
</div>
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