employee add live issue

This commit is contained in:
venbatechnologies@gmail.com 2019-01-10 10:41:17 +05:30
parent 84c0305438
commit b73c6674f7
3 changed files with 9 additions and 5 deletions

View File

@ -175,6 +175,9 @@ class Employee_Controller extends REST_Controller {
// add employee without image
public function addEmployee_post() {
$data = $this->post('data');
//print_r($data);die();
$createdBy = $this->post('createdBy');

View File

@ -45,7 +45,8 @@ app.controller('staffCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$
'role': '',
'jobResponsibility': '',
'switchsetting': true,
'finaceModuleAccess': false
'finaceModuleAccess': false,
'callModuleAccess':false
};
var data = '';
$scope.roleDetails = '';
@ -386,7 +387,7 @@ app.controller('staffCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$
$scope.addEmpBranchDetails = function(emp, form) {
// console.log(form);return false;;
// console.log($scope.empAddBranchDetails.callModuleAccess);return false;;
if (form.$invalid) {
var field = null, firstError = null;
for (field in form) {
@ -412,7 +413,7 @@ app.controller('staffCtrl', ["$scope", "toaster", "$filter", "ngTableParams", "$
'FinanceModuleAccess': $scope.empAddBranchDetails.FinanceModuleAccess == true ? 1 : 0,
'CallModuleAccess': $scope.empAddBranchDetails.callModuleAccess == true ? 1 : 0,
}
// console.log($scope.addEmpNewBranch);return false;
//console.log($scope.addEmpNewBranch);return false;
var req = {
method: 'POST',
url: apiPoint.url + 'addEmpBranchDetail/',

View File

@ -114,8 +114,8 @@
Call Tracking Access <span ng-if="empRoleDetail.callModuleAccess" class="symbol"></span>
</label>
<div class="checkbox clip-check check-primary">
<input type="checkbox" id="checkbox7" name="CalltrackingAccess" ng-model="empEditBranchDetails.callModuleAccess">
<label for="checkbox7">
<input type="checkbox" id="checkbox8" name="CalltrackingAccess" ng-model="empEditBranchDetails.callModuleAccess">
<label for="checkbox8">
Call Tracking Access
</label>
</div>