jsharmony-cms
Version:
48 lines (41 loc) • 2.81 kB
JSON
{
"Dashboard": {
"layout":"form",
"title":"Site Dashboard",
"caption":["","Dashboard","Dashboard"],
"roles": {"*":"B"},
"actions":"B",
"menu":"Dashboard",
"breadcrumbs":"#CMS_SITE_BREADCRUMBS",
"oninit": "jsh.System.RequireSite(xmodel);",
"sqlselect": [
"select ",
"(select txt_body from jsharmony.txt where txt_process='CMS' and txt_attrib='Dashboard') as motd,",
"$ifnull((select branch_desc from {schema}.v_my_branch_desc where branch_id={schema}.my_current_branch_id()),'(No revision currently checked out)') branch_desc,",
"(select count(note_id) from jsharmony.note where note_scope='S' and note_type='S') note_sys_count,",
"(select {schema}.my_current_branch_id()) branch_id",
"from jsharmony.single"
],
"formstyle": "min-width:900px;",
"nokey": true,
"onload":"jsh.$root('.Dashboard_MOTD').html(xmodel.controller.form.Data.motd); if(parseInt(xmodel.get('note_sys_count'))) jsh.$root('.xform'+xmodel.class+' .qnssl').show();",
"css":[
".xform<%=model.class%> .xsubform.Dashboard_BranchOverview .xpanel { border:0; padding:2px; }"
],
"fields":[
{"name":"motd","type":"varchar","actions":"B","control":"hidden","caption":""},
{"control":"html","value":"<script type='text/javascript' src='/js/d3.v5.min.js'></script>"},
{"control":"html","value":"<hr style='max-width:100%; width:600px; margin-left:0; position:relative; top:-3px;' />"},
{"name":"Dashboard_BranchOverview","control":"subform","target":"Dashboard_BranchOverview","actions":"B","bindings":{},
"caption":"","controlstyle":"margin-right:15px;margin-top:2px;margin-bottom:10px;width:480px;display:inline-block;"},
{"name":"Dashboard_NewContentPieChart","control":"subform","target":"Dashboard_NewContentPieChart","actions":"B","bindings":{},
"caption":"New Content (30 Days)","controlstyle":"margin-right:15px;margin-top:25px;margin-bottom:25px;width:480px;display:inline-block;","nl":true},
{"name":"Dashboard_UserPieChart","control":"subform","target":"Dashboard_UserPieChart","actions":"B","bindings":{},
"caption":"Top Editors (30 Days)","controlstyle":"margin-right:15px;margin-top:25px;width:480px;display:inline-block;margin-bottom:25px;"},
{"name":"qnssl","control":"subform","target":"jsHarmonyFactory/Dashboard_Note_Listing","bindings":{"note_scope":"'S'","note_type":"'S'"},"actions": "BIUD",
"caption":"System Notifications","controlstyle":"display:none;width:820px;float:left;margin-right:10px;margin-top:25px;","nl":true},
{"control":"html","value":"<div class='clear Dashboard_MOTD' style='padding-top:10px;'></div>"},
{"control":"html","value":"<div class='clear'></div>"}
]
}
}