{
  "Branch_Conflicts": {
    "layout":"form",
    "table":"{schema}.branch",
    "onecolumn":true,
    "roles": {"PUBLISHER": "BU","AUTHOR": "BU"},
    "sqlwhere":"(site_id={schema}.my_current_site_id())",
    "actions":"BU",
    "caption":["Revision","Revisions"],
    "title":"Revision Conflicts",
    "onload":"_this.onload(xmodel, callback);",
    "buttons":[
      { "name":"abortMerge", "link":"js:_this.abortMerge(this)","icon":"delete","text":"Abort","class":"Branch_Conflicts_buttonAbort", "roles": {"AUTHOR": "U","PUBLISHER": "U"} }
    ],
    "fields": [
      {"name":"branch_id","control":"hidden","key":true},
      {"name":"branch_merge_id","control":"hidden"},
      {"name":"branch_merge_type","control":"hidden"},
      {"name":"src_branch_desc","caption":"Merge From","control":"label","captionstyle":"font-weight:bold;text-align:right;","sqlselect":"(select branch_desc from {schema}.v_my_branch_desc src where src.branch_id = branch_merge_id)"},
      {"name":"dst_branch_desc","caption":"Merge To","control":"label","captionstyle":"font-weight:bold;text-align:right;","sqlselect":"(select branch_desc from {schema}.v_my_branch_desc dst where dst.branch_id = @branch_id)"},
      {"name":"branch_type","control":"hidden"},
      {"name":"site_id","control":"hidden"},
      {"name":"sys_user_site_editor","sqlselect":"(select sys_user_site_editor from {schema}.v_my_site where v_my_site.site_id=branch.site_id)","control":"hidden"},
      "#CMS_SITE_EDITOR_LOV"
    ]
  },
  "Branch_Conflicts_Abort": {
    "layout": "exec",
    "title": "Abort Merge",
    "actions": "U",
    "roles": {"AUTHOR": "BU","PUBLISHER": "BU"},
    "sqlexec": "update {schema}.branch set branch_merge_id=null, branch_merge_type=null where branch_id=@branch_id and (branch_id in (select branch_id from {schema}.v_my_branch_access where branch_access='RW'))",
    "fields": [
      {"name":"branch_id", "actions":"BU", "type":"bigint", "key": 1, "caption":"Branch ID", "validate": ["Required"]}
    ]
  }
}