{
    "keyColumn": "id",
    "wildsearch": "true",
    "detailHeaderColumnPrefix": "Shift group: ",
    "handleFile": "true",
    "detailHeaderColumns": [
        "shift_group_name"
    ],
    "breadCrumbColumn": "shift_group_name",
    "sessionMatchCondition":{
  	"department_id":"cms_department_id"
	},
    "orderBy": {
        "id": "DESC"
    },
    "includeJsFiles": [
        "leave_type.js"
    ],
    "listColumns": [
        "shift_group_name",
        "note",        
        "active"
    ],
    "showColumns": [
        "id",
        "department_id",
        "shift_group_name",
        "note",        
        "active"
    ],
    "detailColumns": [
        "id",
        "department_id",
        "shift_group_name",
        "note",        
        "active"
    ],
    "columns": {
        "id": {
            "name": "ID",
            "editoptions": {
                "type": "hidden"
            }
        },
       "department_id": {
            "name": "Department_id",
            "editoptions": {
                "type": "hidden"
            }
        },
        "shift_group_name": {
            "name": "Shift Group Name",
            "searchable": "true",
            "sortable": "true",
            "editoptions": {
                "type": "textbox",
                "label": "Shift group name",
                "class": "textbox",
                "hint": "Shift group name",
                "validations": [
                    "required"
                ]
            }
        },
       "note": {
            "name": "Note",
            "searchable": "true",
            "sortable": "true",
            "editoptions": {
                "type": "textbox",
                "label": "Note",
                "class": "textbox",
                "hint": "Note",
                "validations": [
                    "required"
                ]
            }
        },      

        "active": {
            "name": "Status",
            "searchable": "true",
            "sortable": "true",            
            "editoptions": {
                "type": "select",
                "source": {
                    "Y": "Active",
                    "N": "Inactive"
                },
                "default": "Y",
                "source_type": "array",
                "label": "Status",
                "class": "select",
                "enumvalues": {
                    "Y": "Active",
                    "N": "Inactive"
                },
                "validations": [
                    "required"
                ]
            }
        }
    },
    "customActions": {
        "beforeAddRecord": "Cmshelper::beforeAddShiftgroup",
        "beforeEditRecord": "Cmshelper::beforeEditShiftgroup",
        "beforeDeleteRecord": "Cmshelper::beforeDeleteShiftgroup"
    },
    "opertations": [
        "add",
        "view",
        "edit",
        "delete"
       
    ],
 "customOperations": {
        "Assign": {
            "options": {
                "name": "Assign",
                "linkSource": "Cmshelper::assignshifts",
                "class": "assign_shift_class",
                "title": "Assign Shift Group"
            }
        },
 "Employees": {
            "options": {
                "name": "Employees",
                "linkSource": "Cmshelper::assignshifts",
                "class": "view_assigned_employee_class",
                "title": "View Employees"
            }
        },
  "Shifts": {
            "options": {
                "name": "Shifts",
                "linkSource": "Cmshelper::assignshifts",
                "class": "view_assigned_shifts_class",
                "title": "View Shifts"
            }
        }     
    },

    "operationLabel": {
        "addLabel": "Add Shift Group",
        "editTitle": "Edit Shift Group",
        "viewTitle": "View Shift Group",
        "deleteTitle": "Delete Shift Group"
        
    }
}

