jsharmony-cms
Version:
40 lines (38 loc) • 2.2 kB
JSON
{
"Publish_Add": {
"layout":"form",
"title":"Schedule Deployment",
"caption":["Deployment","Deployments"],
"roles": {"PUBLISHER": "B"},
"actions":"B",
"menu":"Publish",
"breadcrumbs":"#CMS_SITE_BREADCRUMBS",
"oninit": "jsh.System.RequireSite(xmodel);",
"sqlselect": [
"select ",
"(select branch_desc from {schema}.v_my_branch_desc where branch_id={schema}.my_current_branch_id()) branch_desc,",
"(select {schema}.my_current_branch_id()) branch_id",
"from jsharmony.single"
],
"formstyle": "min-width:500px;",
"nokey": true,
"onload": "if(xmodel.get('branch_desc')){ jsh.$root('.'+xmodel.class+'_current_revision').text(xmodel.get('branch_desc')); jsh.$root('.'+xmodel.class+'_deploy_current_revision').show(); }",
"hide_system_buttons":["print","save"],
"css": [
".<%=model.class%>_deploy_release { margin-bottom:30px; }",
".xform<%=model.class%> h3 { color:#555; margin-bottom:9px; }",
],
"fields": [
{"name":"branch_desc","type":"varchar","actions":"B","control":"hidden","caption":""},
{"control":"html","value":"<div class='<%=model.class%>_deploy_release'>"},
{"control":"html","value":"<h3 style='margin-bottom:5px;'>Option 1: Publish a standard release:</h3>"},
{"control":"linkbutton","link":"Publish_Add_Release","controlclass":"jsHarmonyCms_action_button","value":"Publish a Release","controlstyle": "padding:3px 8px;margin-top:6px;"},
{"control":"html","value":"</div>"},
{"control":"html","value":"<div class='<%=model.class%>_deploy_current_revision' style='display:none;'>"},
{"control":"html","value":"<h3>Option 2: Publish the current checked-out revision:</h3>"},
{"control":"html","value":"<div style='padding-bottom:2px;'><b>Current Revision</b>: <span class='<%=model.class%>_current_revision'></span></div>"},
{"control":"linkbutton","link":"update:Publish_Add_Branch&branch_id","controlclass":"jsHarmonyCms_action_button","value":"Publish the Current Checked-out Revision","controlstyle": "padding:3px 8px;margin-top:6px;"},
{"control":"html","value":"</div>"},
]
}
}