{
    "keyColumn": "id",
    "wildsearch": "true",
    "detailHeaderColumnPrefix": "Shifts: ",
    "handleFile": "true",
	
    "detailHeaderColumns": [
        "title"
    ],
    "breadCrumbColumn": "title",
    "sessionMatchCondition":{
  	"department_id":"cms_department_id"
	},

    "orderBy": {
        "id": "DESC"
    },
  "includeJsFiles": [ "jquery.timepicker.min.js" ],
   "includeCssFiles": [ "jquery.timepicker.css" ],

    "listColumns": [
        "title",
        "time_from",
        "time_to",
        "active"
    ],
    "showColumns": [
        "id",
       "title",
        "time_from",
        "time_to",        
        "department_id",
        "active"
    ],
    "detailColumns": [
        "id",
       "title",
        "time_from",
        "time_to",       
        "department_id",           
        "active"
    ],
    "columns": {
        "id": {
            "name": "ID",
            "editoptions": {
                "type": "hidden"
            }
        },
        "department_id": {
            "name": "Department_id",
            "editoptions": {
                "type": "hidden"
            }
        },
        "title": {
            "name": "Title",
            "searchable": "true",
            "sortable": "true",
            "editoptions": {
                "type": "textbox",
                "label": "Title",
                "class": "textbox",
                "hint": "News Title",
                "validations": [
                    "required"
                ]
            }
        },
        "time_from": { 
		"name": "From Time",
 		"searchable": "true",
 		"sortable": "true", 	
                "dbFormat": "time",
 		"displayFormat": "h:i A",	
                "editoptions": {
                "type": "textbox",
                "label": "From Time",
                "class": "textbox",
                "hint": "From Time",
                "validations": [
                    "required"
                ]
            }
 		
	},
       "time_to": { 
		"name": "To Time",
 		"searchable": "true",
 		"sortable": "true",
                "dbFormat": "time",
 		"displayFormat": "h:i A",
                "editoptions": {
                "type": "textbox",
                "label": "To Time",
                "class": "textbox",
                "hint": "To Time",
                "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::beforeAddShifts",
        "beforeEditRecord": "Cmshelper::beforeEditShifts",
        "beforeDeleteRecord": "Cmshelper::beforeDeleteShifts"

    },
    "opertations": [
        "add",
        "view",
        "edit",
        "delete"
       
    ],

 

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

