Commit 341ed31b authored by Raph El's avatar Raph El
Browse files

Merge branch 'development' of https://gitlab.adullact.net/pixelhumain/survey into development

parents f1284539 c90f5779
......@@ -13,8 +13,7 @@
'index' => 'survey.controllers.answer.IndexAction',
'all'=>'survey.controllers.answer.AllAction',
'admindirectory'=>'survey.controllers.answer.admin.DirectoryAction',
'forms' => 'survey.controllers.answer.OformsAction',
'all' => 'survey.controllers.answer.AllAction',
'get' => 'survey.controllers.answer.GetAction',
);
}
}
......@@ -11,6 +11,7 @@
return array(
'create' => 'survey.controllers.openForm.CreateAction',
'edit'=> 'survey.controllers.openForm.EditAction',
'get' => 'survey.controllers.openForm.GetAction',
);
}
}
<?php
class AllAction extends CTKAction
class GetAction extends CTKAction
{
//if $slug : getd all the forms for an element.slug
//if $id : opens the forms
......
<?php
class OformsAction extends CTKAction
class GetAction extends CTKAction
{
//if $slug : getd all the forms for an element.slug
//if $id : opens the forms
......
......@@ -45,7 +45,7 @@ jQuery(document).ready(function() {
mylog.log("render","/modules/costum/views/tpls/forms/cplx/answers.php");
$('.showAnswersBtn').off().on("click",function() {
getAjax("#central-container",baseUrl+"/survey/answer/all/form/"+$(this).data("id"),function(){
getAjax("#central-container",baseUrl+"/survey/answer/get/form/"+$(this).data("id"),function(){
},"html");
});
......@@ -187,5 +187,5 @@ var oformParams = {
}
}
};
//use id type
</script>
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