Commit 2d6b5947 authored by Clément Damiens's avatar Clément Damiens
Browse files

preview answer

parent 81387235
<div id="preview-elt-<?php echo $type ?>-<?php echo (string)$element["_id"] ?>">
<div class="col-xs-12 padding-10 toolsMenu">
<button class="btn btn-default pull-right btn-close-preview">
<i class="fa fa-times"></i>
</button>
</div>
<div class="col-xs-12 no-padding">
<?php
$params = array("answer"=>$element ,
"page" => "page",
"type" => $type,
"form"=> PHDB::findOneById( Form::COLLECTION , $element["form"]),
"canEdit"=>@$canEdit,
"canEditForm"=>false,
"controller" => $controller);
$params = Form::getDataForm($params);
$params["mode"]=(isset($_GET["mode"])) ? $_GET["mode"] : "rplus";
echo $this->renderPartial('survey.views.tpls.forms.formWizard', $params );
?>
</div>
\ No newline at end of file
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