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

observatoryan dopen dyn form builder

parent fbd7ad1c
......@@ -368,6 +368,24 @@ var pageProfil = {
// formProfil.events.form(formProfil);
// formProfil.events.add(formProfil);
},
dashboard: function(){
mylog.log("pageProfil.views.dashboard");
//alert( contextData.costum.dashbordTpl );
var dTpl = "";
var dType = "";
if( notNull(contextData.costum.dashboard ) ){
if( notNull( contextData.costum.dashboard.tpl ) )
dTpl = "/tpl/"+contextData.costum.dashboard.tpl;
if ( notNull( contextData.costum.dashboard.type ) )
dType = "/type/"+contextData.costum.dashboard.type;
}
getAjax('#central-container', baseUrl+'/costum/co/dashboard/sk/'+contextData.slug+dTpl+dType,
function(data){
//alert("loaded dashboard ")
}
,"html");
},
md : function(){
mylog.log("pageProfil.views.md");
......
......@@ -833,7 +833,7 @@ class CommunecterController extends Controller
//var_dump($cacheCostum);exit;
if(isset(Yii::app()->session["userId"])){
$el = [
"id" => $cacheCostum["contextId"],
"id" => $cacheCostum["contextId"],
"type" => $cacheCostum["contextType"] ];
$costumUser = Costum::getCheckCustomUser($cacheCostum,$el);
......
......@@ -603,14 +603,22 @@
"class":"",
"view":"gallery",
"id":"btn-start-gallery",
"id":"btn-start-gallery"
"id":"btn-start-gallery" ,
"separator":true
},
"forms":{
"label": "Forms",
"icon":"file-text-o",
"class":"",
"view":"forms",
"id":"btn-start-forms",
"id":"btn-start-forms"
},
"dashboard":{
"label": "Observatory",
"icon":"tachometer",
"class":"",
"view":"dashboard",
"id":"btn-start-dashboard",
"separator":true
},
"community":{
......
......@@ -33,7 +33,7 @@
$params["mode"] = "r";
}
// echo "<script>alert('welcome')</script>";
//echo "<script>alert('welcome')</script>";
//var_dump($params['parentForm']);exit;
// var_dump($this->costum["welcomeTpl"]);
// var_dump($params);
......
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