Commit e45f036a authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

creation de answer.index pour afficher les answers

parent 687e9587
......@@ -29,17 +29,6 @@ class IndexAction extends CAction
}else {
$slugCache = !empty(@$_GET["host"]) ? $_GET["host"] : null;
}
// WARNING problem
/* if(!isset($id) && (!isset($slug) || empty($slug) )) {
if(!empty(Yii::app()->session["costum"]["contextSlug"]))
$slug = Yii::app()->session["costum"]["contextSlug"];
else if(!empty(Yii::app()->session["costum"]["contextType"]) && !empty(Yii::app()->session["costum"]["contextId"])){
$el = PHDB::findOne( Yii::app()->session["costum"]["contextType"] ,
[ "_id" => new MongoId( Yii::app()->session["costum"]["contextId"] ) ] );
$slug = $el["slug"];
}
} */
if(!$controller->cacheCostumInit($slugCache)){
$returnCostum = Costum::init ($controller,$id,$type,$slug,$view,$test,"costum/controllers/actions/IndexAction.php");
......
......@@ -54,10 +54,11 @@
"dropdownResult":true,
"useMapBtn":false
},
"#form":{
"hash" : "#co.index.slug.",
"#answers":{
"icon" : "",
"module":"costum",
"module":"survey",
"hash" : "#answer.index",
"useHeader" : true,
"useFilter" : false,
"useFooter" : true,
......
......@@ -155,7 +155,7 @@ if(isset($this->costum["cms"]["color1"]))
];
echo $this->renderPartial($this->costum["form"]["answersTpl"],$params);
if($showForm){
if( isset($answer) && $showForm){
$params = [
"formList"=>$formList,
"el" => $el,
......
Supports Markdown
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