Commit 806464fe authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

tweaks

parent 78159c4c
......@@ -36,7 +36,7 @@ class EditAction extends CAction
$params["showForm"] = true;
$params["mode"] = "fa";
$tpl=(!empty($form["tpl"])) ? $form["tpl"] : "survey.views.tpls.forms.formWizard";
//Rest::json($params); exit;
//var_dump($params); exit;
echo $this->getController()->renderPartial($tpl,$params );
} else {
if(Yii::app()->request->isAjaxRequest)
......
......@@ -203,7 +203,7 @@ if(isset($this->costum["cms"]["color1"]))
<script type="text/javascript">
//to edit costum page pieces
var configDynForm = <?php echo json_encode($this->costum['dynForm']); ?>;
var configDynForm = <?php echo json_encode(@$this->costum['dynForm']); ?>;
var answerId = <?php echo json_encode((String)$answer['_id']); ?>;
var mode = <?php echo json_encode($mode); ?>;
var elTest = <?php echo json_encode($el); ?>;
......
......@@ -138,10 +138,10 @@ var oform = {
formid : { inputType : "hidden",value:"<?php echo $el["slug"].count($forms) ?>"},
parent : {
inputType : "finder",
label : tradDynForm.whoiscarrytheproject,
label : "Qui porte le questionnaire ?",
multiple : true,
rules : { required : true, lengthMin:[1, "parent"]},
initType: ["organizations", "projects"],
initType: ["organizations", "projects","events","citoyens"],
openSearch :true
},
image : dyFInputs.image(),
......
......@@ -73,7 +73,7 @@ if( isset($parentForm["subForms"]) && count($parentForm["subForms"]) > 1 ) {
$l = 'showStepForm(\'#'.$v.'\')' ;
$activeStep = $k;
}
var_dump($forms); exit;
//var_dump($forms); exit;
echo '<a onclick="'.$l.'" href="javascript:;" '.$d.' >';
echo '<div class="stepNumber">'.$lbl.'</div>';
......
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