Commit 4b30cd54 authored by Anatole Rakotoson's avatar Anatole Rakotoson

community wizard

parent 46a7451e
......@@ -39,21 +39,12 @@ if( isset(Yii::app()->session["costum"]["tpls"][$keyTpl]) ) {
}
</style>
<ul id="wizardLinks">
<?php
// var_dump($listSteps); exit;
$activeStep = 1;
$nextStepValid =false;
?>
</ul>
<?php
foreach ($formList as $k => $v) {
$hide = ($k==$activeStep) ? "" : "hide";
?>
<div id='<?php echo $v ?>' class='col-sm-offset-1 col-sm-10 sectionStep <?php echo $hide ?>' style="padding-bottom:40px">
<div id='<?php echo $v ?>' class='col-sm-offset-1 col-sm-10 sectionStep ' style="padding-bottom:40px">
<?php
$form = PHDB::findOne( Form::COLLECTION,[ "id"=>$v ] );
?>
......@@ -81,7 +72,7 @@ var formInputsHere = formInputs;
echo $this->renderPartial("survey.views.tpls.forms.formSection",
[ "formId" => $v,
"form" => $form,
"wizard" => true,
"wizard" => false,
"answer"=>$answer,
"mode" => "w",
"showForm" => $showForm,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment