jsharmony-cms
Version:
32 lines • 2.19 kB
JSON
{
"Branch_Active_Public_Listing": {
"layout":"grid",
"table":"{schema}.v_my_branch_desc",
"actions":"B",
"roles": {"*": "B"},
"sqlwhere":"branch_type='PUBLIC' and branch_sts='ACTIVE' and (site_id={schema}.my_current_site_id())",
"caption":["Revision","Revisions"],
"title":"Releases",
"hide_system_buttons":["search","export"],
"rowlimit":1000,
"tablestyle":"min-width:600px;",
"noresultsmessage":"No releases.",
"rowclass": "<%=xejs.iif(datarow['branch_is_checked_out']==1,'branch_checked_out')%>",
"css":[
".xform<%=model.class%> .branch_checked_out .branch_checkout_button a { color:#333; cursor:default; pointer-events:none; }",
],
"fields": [
{"name":"branch_id","control":"hidden"},
{"name":"branch_is_checked_out","control":"hidden"},
{"name":"branch_desc","caption":"Name","cellstyle":"min-width:200px;","link":"update:Branch_Summary"},
{"name":"branch_data_mtstmp_fmt","type":"datetime","caption":"Last Modified","sqlselect":"$ifnull(branch_data_mtstmp,branch_mtstmp)","control":"label","actions":"B","format":["date","MM/DD/YYYY h:mm a"]},
{"name":"branch_data_muser_fmt","caption":"Modified By","sqlselect":"(jsharmony.my_db_user_fmt($ifnull(branch_data_muser,branch_muser)))","control":"label","actions":"B"},
{"caption":"Checkout","control":"html","link":"js:jsh.System.CheckoutBranch(xmodel, xmodel.get('branch_id', this),'PUBLIC')","captionstyle":"text-align:center;","cellstyle":"text-align:center;",
"value":"<%=xejs.iif(datarow['branch_is_checked_out']==1,'(Checked Out)','Checkout')%>",
"cellclass":"branch_checkout_button"},
{"caption":"Details","control":"html","link":"update:Branch_Summary","captionstyle":"text-align:center;","cellstyle":"text-align:center;",
"value":"<img src='/images/icon_browse.png' class='xicon' style='top:4px;' />"},
{"caption":"Clone","control":"linkbutton","link":"update:Branch_Clone&branch_id","captionstyle":"text-align:center;","cellclass":"jsHarmonyCms_action_button","roles":{"PUBLISHER":"*","AUTHOR":"*"},"controlstyle":"vertical-align:middle;"},
]
}
}