Commit 5139fa05b6f1db05c88e7ede41cc280dc39b7ffc
1 parent
f306c78733
Exists in
master
new filed added
Showing
2 changed files
with
23 additions
and
6 deletions
Show diff stats
app/views/fbo-admin/dashboard.controller.js
1 | 'use strict'; | 1 | 'use strict'; |
2 | 2 | ||
3 | //Load controller | 3 | //Load controller |
4 | angular.module('acuefuel') | 4 | angular.module('acuefuel') |
5 | 5 | ||
6 | .controller('DashboardController', function($scope, $state, FBOAdmin) { | 6 | .controller('DashboardController', function($scope, $state, FBOAdmin) { |
7 | $(document).ready(function(){ | 7 | $(document).ready(function(){ |
8 | $('.i-checks').iCheck({ | 8 | $('.i-checks').iCheck({ |
9 | checkboxClass: 'icheckbox_square-green', | 9 | checkboxClass: 'icheckbox_square-green', |
10 | radioClass: 'iradio_square-green', | 10 | radioClass: 'iradio_square-green', |
11 | }); | 11 | }); |
12 | $('.fboadmin').addClass('active'); | 12 | $('.fboadmin').addClass('active'); |
13 | }); | 13 | }); |
14 | $scope.userName = 'Dylan Goodwin'; | 14 | $scope.userName = 'Dylan Goodwin'; |
15 | $scope.essAccountId = true; | 15 | $scope.essAccountId = true; |
16 | $("#esAccId").css({ opacity: 0.5 }); | 16 | $("#esAccId").css({ opacity: 0.5 }); |
17 | $scope.user = {}; | 17 | $scope.user = {}; |
18 | $scope.user.companyName = ''; | 18 | $scope.user.companyName = ''; |
19 | $scope.user.email = ''; | 19 | $scope.user.email = ''; |
20 | $scope.user.password = ''; | 20 | $scope.user.password = ''; |
21 | $scope.user.icao = ''; | ||
21 | $scope.feature = {}; | 22 | $scope.feature = {}; |
22 | $scope.feature.level = 'silver'; | 23 | $scope.feature.level = 'silver'; |
23 | $scope.feature.essintaPosSystem = false; | 24 | $scope.feature.essintaPosSystem = false; |
24 | $scope.feature.acuQuote = false; | 25 | $scope.feature.acuQuote = false; |
25 | $scope.feature.acuTrack = false; | 26 | $scope.feature.acuTrack = false; |
26 | $scope.feature.fuelProgram = false; | 27 | $scope.feature.fuelProgram = false; |
27 | $scope.feature.amstatIntegration = false; | 28 | $scope.feature.amstatIntegration = false; |
28 | $scope.feature.posAccountingIntegration = false; | 29 | $scope.feature.posAccountingIntegration = false; |
29 | $scope.feature.posVeederRootIntegration = false; | 30 | $scope.feature.posVeederRootIntegration = false; |
30 | 31 | ||
31 | $scope.checkUsername = function(){ | 32 | $scope.checkUsername = function(){ |
32 | FBOAdmin.checkUsernameEmail($scope.user.email).then(function(status) { | 33 | FBOAdmin.checkUsernameEmail($scope.user.email).then(function(status) { |
33 | console.log(status) | 34 | console.log(status) |
34 | if(status != 200){ | 35 | if(status != 200){ |
35 | toastr.error('This email has alreay taken', { | 36 | toastr.error('This email has alreay taken', { |
36 | closeButton: true | 37 | closeButton: true |
37 | }) | 38 | }) |
38 | } | 39 | } |
39 | }) | 40 | }) |
40 | } | 41 | } |
41 | $scope.comnayNameInvalid = false; | 42 | $scope.comnayNameInvalid = false; |
42 | $scope.emailInvalid = false; | 43 | $scope.emailInvalid = false; |
43 | $scope.passwordInvalid = false; | 44 | $scope.passwordInvalid = false; |
45 | $scope.icaoInvalid = false; | ||
44 | 46 | ||
45 | $scope.companyNameValid = function(){ | 47 | $scope.companyNameValid = function(){ |
46 | $scope.comnayNameInvalid = false; | 48 | $scope.comnayNameInvalid = false; |
47 | $('.companyNameError').removeClass('customErrorInput'); | 49 | $('.companyNameError').removeClass('customErrorInput'); |
48 | } | 50 | } |
49 | $scope.emailValid = function(){ | 51 | $scope.emailValid = function(){ |
50 | $scope.emailInvalid = false; | 52 | $scope.emailInvalid = false; |
51 | $('.emailIdError').removeClass('customErrorInput'); | 53 | $('.emailIdError').removeClass('customErrorInput'); |
52 | } | 54 | } |
53 | $scope.passwordValid = function(){ | 55 | $scope.passwordValid = function(){ |
54 | $scope.passwordInvalid = false; | 56 | $scope.passwordInvalid = false; |
55 | $('.invalidPassword').removeClass('customErrorInput'); | 57 | $('.invalidPassword').removeClass('customErrorInput'); |
56 | } | 58 | } |
59 | $scope.icaoValid = function(){ | ||
60 | $scope.icaoInvalid = false; | ||
61 | $('.icaoNameError').removeClass('customErrorInput'); | ||
62 | } | ||
57 | 63 | ||
58 | $scope.userData = function(){ | 64 | $scope.userData = function(){ |
59 | console.log('$scope.user', $scope.user); | 65 | console.log('$scope.user', $scope.user); |
60 | if ($scope.user.companyName == '') { | 66 | if ($scope.user.companyName == '') { |
61 | $scope.comnayNameInvalid = true; | 67 | $scope.comnayNameInvalid = true; |
62 | $('.companyNameError').addClass('customErrorInput'); | 68 | $('.companyNameError').addClass('customErrorInput'); |
69 | }else if ($scope.user.icao == '') { | ||
70 | $scope.icaoInvalid = true; | ||
71 | $('.icaoNameError').addClass('customErrorInput'); | ||
63 | }else if ($scope.user.email == '') { | 72 | }else if ($scope.user.email == '') { |
64 | $scope.emailInvalid = true; | 73 | $scope.emailInvalid = true; |
65 | $('.emailIdError').addClass('customErrorInput'); | 74 | $('.emailIdError').addClass('customErrorInput'); |
66 | }else if ($scope.user.password == '') { | 75 | }else if ($scope.user.password == '') { |
67 | $scope.passwordInvalid = true; | 76 | $scope.passwordInvalid = true; |
68 | $('.invalidPassword').addClass('customErrorInput'); | 77 | $('.invalidPassword').addClass('customErrorInput'); |
69 | }else{ | 78 | }else{ |
70 | if($scope.status == true){ | 79 | if($scope.status == true){ |
71 | $scope.user.status = 'active'; | 80 | $scope.user.status = 'active'; |
72 | }else{ | 81 | }else{ |
73 | $scope.user.status = 'inactive'; | 82 | $scope.user.status = 'inactive'; |
74 | } | 83 | } |
75 | $scope.user.username = $scope.user.email; | 84 | $scope.user.username = $scope.user.email; |
76 | $scope.user.userType = 'fbo'; | 85 | $scope.user.userType = 'fbo'; |
77 | console.log($scope.user) | 86 | console.log($scope.user) |
78 | var formdata = "companyName=" + $scope.user.companyName + "&email=" + $scope.user.email + "&username=" + $scope.user.username + "&firstName=" + $scope.user.firstName + "&lastName=" + $scope.user.lastName + "&password=" + $scope.user.password + "&phone=" + $scope.user.phone + "&mobile=" + $scope.user.mobile + "&status=" + $scope.user.status + "&userType=" + $scope.user.userType + "&clientNote=" + $scope.user.clientNote; | 87 | var formdata = "companyName=" + $scope.user.companyName + "&icao=" + $scope.user.icao + "&email=" + $scope.user.email + "&username=" + $scope.user.username + "&firstName=" + $scope.user.firstName + "&lastName=" + $scope.user.lastName + "&password=" + $scope.user.password + "&phone=" + $scope.user.phone + "&mobile=" + $scope.user.mobile + "&status=" + $scope.user.status + "&userType=" + $scope.user.userType + "&clientNote=" + $scope.user.clientNote; |
79 | FBOAdmin.registerUser(formdata).then(function(result) { | 88 | FBOAdmin.registerUser(formdata).then(function(result) { |
80 | toastr.success('Created Successfully', { | 89 | toastr.success('Created Successfully', { |
81 | closeButton: true | 90 | closeButton: true |
82 | }) | 91 | }) |
83 | $scope.feature.accountId = result; | 92 | $scope.feature.accountId = result; |
84 | var featureControlData = "accountId=" + $scope.feature.accountId + "&level=" + $scope.feature.level + "&essintaPosSystem=" + $scope.feature.essintaPosSystem | 93 | var featureControlData = "accountId=" + $scope.feature.accountId + "&level=" + $scope.feature.level + "&essintaPosSystem=" + $scope.feature.essintaPosSystem |
85 | + "&acuQuote=" + $scope.feature.acuQuote + "&acuTrack=" + $scope.feature.acuTrack + "&fuelProgram=" + $scope.feature.fuelProgram + "&amstatIntegration=" + $scope.feature.amstatIntegration+ "&posAccountingIntegration=" | 94 | + "&acuQuote=" + $scope.feature.acuQuote + "&acuTrack=" + $scope.feature.acuTrack + "&fuelProgram=" + $scope.feature.fuelProgram + "&amstatIntegration=" + $scope.feature.amstatIntegration+ "&posAccountingIntegration=" |
86 | + $scope.feature.posAccountingIntegration + "&posVeederRootIntegration=" + $scope.feature.posVeederRootIntegration | 95 | + $scope.feature.posAccountingIntegration + "&posVeederRootIntegration=" + $scope.feature.posVeederRootIntegration |
87 | + "&essintaAccountUid=" + $scope.feature.essintaAccountUid + "&additionalLicences=" + $scope.feature.additionalLicences; | 96 | + "&essintaAccountUid=" + $scope.feature.essintaAccountUid + "&additionalLicences=" + $scope.feature.additionalLicences; |
88 | 97 | ||
89 | FBOAdmin.featureControl(featureControlData).then(function(response) { | 98 | FBOAdmin.featureControl(featureControlData).then(function(response) { |
90 | console.log(response) | 99 | console.log(response) |
91 | 100 | ||
92 | }) | 101 | }) |
93 | $state.go('index.fboAdmin'); | 102 | $state.go('index.fboAdmin'); |
94 | }, function (err) { | 103 | }, function (err) { |
95 | toastr.error('Error in registeration', { | 104 | toastr.error('Error in registeration', { |
96 | closeButton: true | 105 | closeButton: true |
97 | }) | 106 | }) |
98 | }); | 107 | }); |
99 | } | 108 | } |
100 | /*if($scope.user.email == ''){ | 109 | /*if($scope.user.email == ''){ |
101 | toastr.error('Please enter your email first', { | 110 | toastr.error('Please enter your email first', { |
102 | closeButton: true | 111 | closeButton: true |
103 | }) | 112 | }) |
104 | }else if($scope.user.firstName == undefined || $scope.user.firstName == null){ | 113 | }else if($scope.user.firstName == undefined || $scope.user.firstName == null){ |
105 | toastr.error('Please enter your First Name', { | 114 | toastr.error('Please enter your First Name', { |
106 | closeButton: true | 115 | closeButton: true |
107 | }) | 116 | }) |
108 | }else{ | 117 | }else{ |
109 | if($scope.status == true){ | 118 | if($scope.status == true){ |
110 | $scope.user.status = 'active'; | 119 | $scope.user.status = 'active'; |
111 | }else{ | 120 | }else{ |
112 | $scope.user.status = 'inactive'; | 121 | $scope.user.status = 'inactive'; |
113 | } | 122 | } |
114 | $scope.user.username = $scope.user.email; | 123 | $scope.user.username = $scope.user.email; |
115 | $scope.user.userType = 'fbo'; | 124 | $scope.user.userType = 'fbo'; |
116 | console.log($scope.user) | 125 | console.log($scope.user) |
117 | var formdata = "companyName=" + $scope.user.companyName + "&email=" + $scope.user.email + "&username=" + $scope.user.username + "&firstName=" + $scope.user.firstName + "&lastName=" + $scope.user.lastName + "&password=" + $scope.user.password + "&phone=" + $scope.user.phone + "&mobile=" + $scope.user.mobile + "&status=" + $scope.user.status + "&userType=" + $scope.user.userType + "&clientNote=" + $scope.user.clientNote; | 126 | var formdata = "companyName=" + $scope.user.companyName + "&email=" + $scope.user.email + "&username=" + $scope.user.username + "&firstName=" + $scope.user.firstName + "&lastName=" + $scope.user.lastName + "&password=" + $scope.user.password + "&phone=" + $scope.user.phone + "&mobile=" + $scope.user.mobile + "&status=" + $scope.user.status + "&userType=" + $scope.user.userType + "&clientNote=" + $scope.user.clientNote; |
118 | FBOAdmin.registerUser(formdata).then(function(result) { | 127 | FBOAdmin.registerUser(formdata).then(function(result) { |
119 | toastr.success('Created Successfully', { | 128 | toastr.success('Created Successfully', { |
120 | closeButton: true | 129 | closeButton: true |
121 | }) | 130 | }) |
122 | $scope.feature.accountId = result; | 131 | $scope.feature.accountId = result; |
123 | var featureControlData = "accountId=" + $scope.feature.accountId + "&level=" + $scope.feature.level + "&essintaPosSystem=" + $scope.feature.essintaPosSystem | 132 | var featureControlData = "accountId=" + $scope.feature.accountId + "&level=" + $scope.feature.level + "&essintaPosSystem=" + $scope.feature.essintaPosSystem |
124 | + "&acuQuote=" + $scope.feature.acuQuote + "&acuTrack=" + $scope.feature.acuTrack + "&fuelProgram=" + $scope.feature.fuelProgram + "&amstatIntegration=" + $scope.feature.amstatIntegration+ "&posAccountingIntegration=" | 133 | + "&acuQuote=" + $scope.feature.acuQuote + "&acuTrack=" + $scope.feature.acuTrack + "&fuelProgram=" + $scope.feature.fuelProgram + "&amstatIntegration=" + $scope.feature.amstatIntegration+ "&posAccountingIntegration=" |
125 | + $scope.feature.posAccountingIntegration + "&posVeederRootIntegration=" + $scope.feature.posVeederRootIntegration | 134 | + $scope.feature.posAccountingIntegration + "&posVeederRootIntegration=" + $scope.feature.posVeederRootIntegration |
126 | + "&essintaAccountUid=" + $scope.feature.essintaAccountUid + "&additionalLicences=" + $scope.feature.additionalLicences; | 135 | + "&essintaAccountUid=" + $scope.feature.essintaAccountUid + "&additionalLicences=" + $scope.feature.additionalLicences; |
127 | 136 | ||
128 | FBOAdmin.featureControl(featureControlData).then(function(response) { | 137 | FBOAdmin.featureControl(featureControlData).then(function(response) { |
129 | console.log(response) | 138 | console.log(response) |
130 | 139 | ||
131 | }) | 140 | }) |
132 | $state.go('index.fboAdmin'); | 141 | $state.go('index.fboAdmin'); |
133 | }, function (err) { | 142 | }, function (err) { |
134 | toastr.error('Error in registeration', { | 143 | toastr.error('Error in registeration', { |
135 | closeButton: true | 144 | closeButton: true |
136 | }) | 145 | }) |
137 | }); | 146 | }); |
138 | }*/ | 147 | }*/ |
139 | 148 | ||
140 | } | 149 | } |
141 | 150 | ||
142 | $scope.enableEssId = function(){ | 151 | $scope.enableEssId = function(){ |
143 | if($scope.feature.essintaPosSystem == true){ | 152 | if($scope.feature.essintaPosSystem == true){ |
144 | $scope.essAccountId = false; | 153 | $scope.essAccountId = false; |
145 | $("#esAccId").css({ opacity: 1 }); | 154 | $("#esAccId").css({ opacity: 1 }); |
146 | }else{ | 155 | }else{ |
147 | $scope.essAccountId = true; | 156 | $scope.essAccountId = true; |
148 | delete $scope.feature.essintaAccountUid; | 157 | delete $scope.feature.essintaAccountUid; |
149 | $("#esAccId").css({ opacity: 0.5 }); | 158 | $("#esAccId").css({ opacity: 0.5 }); |
150 | } | 159 | } |
151 | } | 160 | } |
152 | 161 | ||
153 | }); | 162 | }); |
app/views/fbo-admin/dashboard.html
1 | <style type="text/css"> | 1 | <style type="text/css"> |
2 | .customErrorMessage{ | 2 | .customErrorMessage{ |
3 | color: #8a1f11; | 3 | color: #8a1f11; |
4 | font-weight: bold; | 4 | font-weight: bold; |
5 | 5 | ||
6 | } | 6 | } |
7 | .customErrorInput{ | 7 | .customErrorInput{ |
8 | background-color: rgb(251, 227, 228); | 8 | background-color: rgb(251, 227, 228); |
9 | border: 1px solid #fbc2c4; | 9 | border: 1px solid #fbc2c4; |
10 | color: #8a1f11; | 10 | color: #8a1f11; |
11 | } | 11 | } |
12 | .redAstrick{ | 12 | .redAstrick{ |
13 | color: #8a1f11; | 13 | color: #8a1f11; |
14 | margin: 0 1px; | 14 | margin: 0 1px; |
15 | } | 15 | } |
16 | </style> | 16 | </style> |
17 | 17 | ||
18 | </div> | 18 | </div> |
19 | <div class="row wrapper border-bottom white-bg page-heading"> | 19 | <div class="row wrapper border-bottom white-bg page-heading"> |
20 | <div class="col-lg-8"> | 20 | <div class="col-lg-4"> |
21 | <!-- <h2 ng-click="editName()" ng-show="showCompany" style="cursor: pointer;">Tellus Institute</h2> --> | 21 | <!-- <h2 ng-click="editName()" ng-show="showCompany" style="cursor: pointer;">Tellus Institute</h2> --> |
22 | <div style="margin-top: 20px;"> | 22 | <div style="margin: 5px;" class="form-group"> |
23 | <input type="text" style="width:50%; float: left;" placeholder="Enter Company Name" ng-model="user.companyName" class="form-control companyNameError" ng-keyup="companyNameValid()"> | 23 | <label>Company Name</label> |
24 | <input type="text" style="width:80%; float: left;" placeholder="Enter Company Name" ng-model="user.companyName" class="form-control companyNameError" ng-keyup="companyNameValid()"> | ||
24 | <span class="redAstrick" style="margin: 0 5px;">*</span> | 25 | <span class="redAstrick" style="margin: 0 5px;">*</span> |
25 | <label class="customErrorMessage" ng-show="comnayNameInvalid" style="margin-top: 7px;">This field is required.</label> | 26 | <label class="customErrorMessage" ng-show="comnayNameInvalid">This field is required.</label> |
26 | <div class="clearfix"></div> | 27 | <div class="clearfix"></div> |
27 | </div> | 28 | </div> |
28 | </div> | 29 | </div> |
29 | <div class="col-lg-4" style="margin-top: 20px; text-align: right;"> | 30 | <div class="col-lg-4" > |
31 | <div style="margin: 5px;" class="form-group"> | ||
32 | <label>ICAO Code <span class="redAstrick" style="margin: 0 5px;">*</span></label> <label class="customErrorMessage" ng-show="icaoInvalid">This field is required.</label> | ||
33 | <input type="text" style="width:50%" placeholder="Enter ICAO" ng-model="user.icao" class="form-control icaoNameError" ng-keyup="icaoValid()"> | ||
34 | <div class="clearfix"></div> | ||
35 | </div> | ||
36 | </div> | ||
37 | <div class="col-lg-4" style="margin-top: 25px; text-align: right;"> | ||
30 | <button type="button" class="btn btn-default btn-sm" ui-sref="index.fboAdmin">Cancel</button> | 38 | <button type="button" class="btn btn-default btn-sm" ui-sref="index.fboAdmin">Cancel</button> |
31 | <button type="button" class="btn btn-primary btn-sm" ng-click="userData()">Save Changes</button> | 39 | <button type="button" class="btn btn-primary btn-sm" ng-click="userData()">Save Changes</button> |
32 | </div> | 40 | </div> |
33 | </div> | 41 | </div> |
34 | </div> | 42 | </div> |
35 | <div class="wrapper wrapper-content animated fadeInRight"> | 43 | <div class="wrapper wrapper-content animated fadeInRight"> |
36 | <div class="row"> | 44 | <div class="row"> |
37 | <div class="col-lg-7"> | 45 | <div class="col-lg-7"> |
38 | <div class="ibox float-e-margins"> | 46 | <div class="ibox float-e-margins"> |
39 | <div class="ibox-title"> | 47 | <div class="ibox-title"> |
40 | <div class="pull-left"> | 48 | <div class="pull-left"> |
41 | <h5>Contact Information</h5> | 49 | <h5>Contact Information</h5> |
42 | </div> | 50 | </div> |
43 | <div class="pull-right my-toggle-switch"> | 51 | <div class="pull-right my-toggle-switch"> |
44 | <div class="switch"> | 52 | <div class="switch"> |
45 | <div class="onoffswitch"> | 53 | <div class="onoffswitch"> |
46 | <input type="checkbox" ng-checked="status === true" ng-model="status" ng-init="status = true" class="onoffswitch-checkbox" id="example1"> | 54 | <input type="checkbox" ng-checked="status === true" ng-model="status" ng-init="status = true" class="onoffswitch-checkbox" id="example1"> |
47 | <label class="onoffswitch-label" for="example1"> | 55 | <label class="onoffswitch-label" for="example1"> |
48 | <span class="onoffswitch-inner"></span> | 56 | <span class="onoffswitch-inner"></span> |
49 | <span class="onoffswitch-switch"></span> | 57 | <span class="onoffswitch-switch"></span> |
50 | </label> | 58 | </label> |
51 | </div> | 59 | </div> |
52 | </div> | 60 | </div> |
53 | </div> | 61 | </div> |
54 | <div class="clearfix"></div> | 62 | <div class="clearfix"></div> |
55 | </div> | 63 | </div> |
56 | <div class="ibox-content"> | 64 | <div class="ibox-content"> |
57 | <div class="row"> | 65 | <div class="row"> |
58 | <form role="form"> | 66 | <form role="form"> |
59 | <div class="col-sm-6 b-r"> | 67 | <div class="col-sm-6 b-r"> |
60 | <!-- <div class="form-group"><label>Company Name</label> <input type="text" placeholder="Company Name" ng-model="user.companyName" class="form-control"></div> --> | 68 | <!-- <div class="form-group"><label>Company Name</label> <input type="text" placeholder="Company Name" ng-model="user.companyName" class="form-control"></div> --> |
61 | <div class="form-group"> | 69 | <div class="form-group"> |
62 | <label>Email Username <span class="redAstrick">*</span></label> | 70 | <label>Email Username <span class="redAstrick">*</span></label> |
63 | <label class="customErrorMessage" ng-show="emailInvalid">This field is required.</label> | 71 | <label class="customErrorMessage" ng-show="emailInvalid">This field is required.</label> |
64 | <input type="email" placeholder="Email Username" ng-model="user.email" class="form-control emailIdError" ng-blur="checkUsername()" ng-keyup="emailValid()"> | 72 | <input type="email" placeholder="Email Username" ng-model="user.email" class="form-control emailIdError" ng-blur="checkUsername()" ng-keyup="emailValid()"> |
65 | </div> | 73 | </div> |
66 | <div class="form-group"> | 74 | <div class="form-group"> |
67 | <label>First Name</label> | 75 | <label>First Name</label> |
68 | <input type="text" placeholder="First Name" ng-model="user.firstName" class="form-control"> | 76 | <input type="text" placeholder="First Name" ng-model="user.firstName" class="form-control"> |
69 | </div> | 77 | </div> |
70 | <div class="form-group"> | 78 | <div class="form-group"> |
71 | <label>Last Name</label> | 79 | <label>Last Name</label> |
72 | <input type="text" placeholder="Last Name" ng-model="user.lastName" class="form-control"> | 80 | <input type="text" placeholder="Last Name" ng-model="user.lastName" class="form-control"> |
73 | </div> | 81 | </div> |
74 | <!-- <div> | 82 | <!-- <div> |
75 | <button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="submit"><strong>Log in</strong></button> | 83 | <button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="submit"><strong>Log in</strong></button> |
76 | <label> <input type="checkbox" class="i-checks"> Remember me </label> | 84 | <label> <input type="checkbox" class="i-checks"> Remember me </label> |
77 | </div> --> | 85 | </div> --> |
78 | 86 | ||
79 | </div> | 87 | </div> |
80 | <div class="col-sm-6"> | 88 | <div class="col-sm-6"> |
81 | <div class="form-group"> | 89 | <div class="form-group"> |
82 | <label>Password <span class="redAstrick">*</span></label> | 90 | <label>Password <span class="redAstrick">*</span></label> |
83 | <label class="customErrorMessage" ng-show="passwordInvalid">This field is required.</label> | 91 | <label class="customErrorMessage" ng-show="passwordInvalid">This field is required.</label> |
84 | <input type="password" ng-model="user.password" placeholder="Password" class="form-control invalidPassword" ng-keyup="passwordValid()"> | 92 | <input type="password" ng-model="user.password" placeholder="Password" class="form-control invalidPassword" ng-keyup="passwordValid()"> |
85 | </div> | 93 | </div> |
86 | <div class="form-group"> | 94 | <div class="form-group"> |
87 | <label>Phone</label> | 95 | <label>Phone</label> |
88 | <input type="number" ng-model="user.phone" placeholder="Phone" class="form-control"> | 96 | <input type="number" ng-model="user.phone" placeholder="Phone" class="form-control"> |
89 | </div> | 97 | </div> |
90 | <div class="form-group"> | 98 | <div class="form-group"> |
91 | <label>Mobile</label> | 99 | <label>Mobile</label> |
92 | <input type="number" ng-model="user.mobile" placeholder="Mobile" class="form-control"> | 100 | <input type="number" ng-model="user.mobile" placeholder="Mobile" class="form-control"> |
93 | </div> | 101 | </div> |
94 | </div> | 102 | </div> |
95 | </form> | 103 | </form> |
96 | </div> | 104 | </div> |
97 | </div> | 105 | </div> |
98 | </div> | 106 | </div> |
99 | </div> | 107 | </div> |
100 | <div class="col-lg-5"> | 108 | <div class="col-lg-5"> |
101 | <div class="ibox float-e-margins"> | 109 | <div class="ibox float-e-margins"> |
102 | <div class="ibox-title"> | 110 | <div class="ibox-title"> |
103 | <h5>Client Notes</h5> | 111 | <h5>Client Notes</h5> |
104 | 112 | ||
105 | </div> | 113 | </div> |
106 | <div class="ibox-content"> | 114 | <div class="ibox-content"> |
107 | <div class="row"> | 115 | <div class="row"> |
108 | <form role="form"> | 116 | <form role="form"> |
109 | <textarea class="form-control" rows="10" ng-model="user.clientNote" id="comment"></textarea> | 117 | <textarea class="form-control" rows="10" ng-model="user.clientNote" id="comment"></textarea> |
110 | </form> | 118 | </form> |
111 | </div> | 119 | </div> |
112 | </div> | 120 | </div> |
113 | 121 | ||
114 | </div> | 122 | </div> |
115 | </div> | 123 | </div> |
116 | </div> | 124 | </div> |
117 | </div> | 125 | </div> |
118 | 126 | ||
119 | <div class="wrapper wrapper-content animated fadeInRight"> | 127 | <div class="wrapper wrapper-content animated fadeInRight"> |
120 | <div class="row"> | 128 | <div class="row"> |
121 | <div class="col-lg-12"> | 129 | <div class="col-lg-12"> |
122 | <div class="ibox float-e-margins"> | 130 | <div class="ibox float-e-margins"> |
123 | <div class="ibox-title" style="padding: 5px 15px 5px 15px;"> | 131 | <div class="ibox-title" style="padding: 5px 15px 5px 15px;"> |
124 | <div class="col-lg-8"> | 132 | <div class="col-lg-8"> |
125 | <h5 style="line-height: 34px;margin-bottom: 0;">Feature Account Control</h5> | 133 | <h5 style="line-height: 34px;margin-bottom: 0;">Feature Account Control</h5> |
126 | </div> | 134 | </div> |
127 | <div class="col-lg-4"> | 135 | <div class="col-lg-4"> |
128 | <div class="form-group"> | 136 | <div class="form-group"> |
129 | <label class="col-sm-2 control-label" style="line-height: 34px;margin-bottom: 0;">Level</label> | 137 | <label class="col-sm-2 control-label" style="line-height: 34px;margin-bottom: 0;">Level</label> |
130 | <div class="col-sm-10"> | 138 | <div class="col-sm-10"> |
131 | <select class="form-control m-b" name="account" ng-model="feature.level" style="margin-bottom: 0;"> | 139 | <select class="form-control m-b" name="account" ng-model="feature.level" style="margin-bottom: 0;"> |
132 | <option value="silver" selected>Silver</option> | 140 | <option value="silver" selected>Silver</option> |
133 | <option value="gold">Gold</option> | 141 | <option value="gold">Gold</option> |
134 | </select> | 142 | </select> |
135 | </div> | 143 | </div> |
136 | </div> | 144 | </div> |
137 | </div> | 145 | </div> |
138 | <div class="clearfix"></div> | 146 | <div class="clearfix"></div> |
139 | </div> | 147 | </div> |
140 | <div class="ibox-content"> | 148 | <div class="ibox-content"> |
141 | <div class="row"> | 149 | <div class="row"> |
142 | <form role="form"> | 150 | <form role="form"> |
143 | 151 | ||
144 | <div class="col-lg-3"> | 152 | <div class="col-lg-3"> |
145 | <label style="color: #1ab394;">Modularized</label> | 153 | <label style="color: #1ab394;">Modularized</label> |
146 | <div> | 154 | <div> |
147 | <label> <input type="checkbox" class="i-checks" ng-change="enableEssId()" ng-model="feature.essintaPosSystem" icheck> Essinta POS system </label> | 155 | <label> <input type="checkbox" class="i-checks" ng-change="enableEssId()" ng-model="feature.essintaPosSystem" icheck> Essinta POS system </label> |
148 | </div> | 156 | </div> |
149 | <div> | 157 | <div> |
150 | <label> <input type="checkbox" class="i-checks" ng-model="feature.acuQuote" icheck> AcuQuote </label> | 158 | <label> <input type="checkbox" class="i-checks" ng-model="feature.acuQuote" icheck> AcuQuote </label> |
151 | </div> | 159 | </div> |
152 | <div> | 160 | <div> |
153 | <label> <input type="checkbox" class="i-checks" ng-model="feature.acuTrack" icheck> AcuTrack </label> | 161 | <label> <input type="checkbox" class="i-checks" ng-model="feature.acuTrack" icheck> AcuTrack </label> |
154 | </div> | 162 | </div> |
155 | <div> | 163 | <div> |
156 | <label> <input type="checkbox" class="i-checks" ng-model="feature.fuelProgram" icheck> Fuel Program </label> | 164 | <label> <input type="checkbox" class="i-checks" ng-model="feature.fuelProgram" icheck> Fuel Program </label> |
157 | </div> | 165 | </div> |
158 | <div> | 166 | <div> |
159 | <label> <input type="checkbox" class="i-checks" ng-model="feature.amstatIntegration" icheck> AMSTAT Integration </label> | 167 | <label> <input type="checkbox" class="i-checks" ng-model="feature.amstatIntegration" icheck> AMSTAT Integration </label> |
160 | </div> | 168 | </div> |
161 | <div> | 169 | <div> |
162 | <label> <input type="checkbox" class="i-checks" ng-model="feature.posAccountingIntegration" icheck> POS Accounting Integration </label> | 170 | <label> <input type="checkbox" class="i-checks" ng-model="feature.posAccountingIntegration" icheck> POS Accounting Integration </label> |
163 | </div> | 171 | </div> |
164 | <div> | 172 | <div> |
165 | <label> <input type="checkbox" class="i-checks" ng-model="feature.posVeederRootIntegration" icheck> POS VeederRoot Integration </label> | 173 | <label> <input type="checkbox" class="i-checks" ng-model="feature.posVeederRootIntegration" icheck> POS VeederRoot Integration </label> |
166 | </div> | 174 | </div> |
167 | </div> | 175 | </div> |
168 | <div class="col-lg-9" style="padding: 0;"> | 176 | <div class="col-lg-9" style="padding: 0;"> |
169 | <div class="col-lg-6"> | 177 | <div class="col-lg-6"> |
170 | <div class="form-group" style="margin-top: 18px;" id="esAccId"> | 178 | <div class="form-group" style="margin-top: 18px;" id="esAccId"> |
171 | <label class="control-label pull-left" style="color: #1ab394;line-height: 34px;">Essinta Account UID</label> | 179 | <label class="control-label pull-left" style="color: #1ab394;line-height: 34px;">Essinta Account UID</label> |
172 | <div class="col-lg-6"> | 180 | <div class="col-lg-6"> |
173 | <input type="text" placeholder="" ng-disabled="essAccountId" style="border-color: #1ab394;" class="form-control" ng-model="feature.essintaAccountUid"> | 181 | <input type="text" placeholder="" ng-disabled="essAccountId" style="border-color: #1ab394;" class="form-control" ng-model="feature.essintaAccountUid"> |
174 | </div> | 182 | </div> |
175 | </div> | 183 | </div> |
176 | </div> | 184 | </div> |
177 | <div class="col-lg-6"> | 185 | <div class="col-lg-6"> |
178 | <div class="form-group" style="margin-top: 18px;"> | 186 | <div class="form-group" style="margin-top: 18px;"> |
179 | <label class="control-label pull-left" style="color: #ffa149;line-height: 34px;">Additional Device Licences</label> | 187 | <label class="control-label pull-left" style="color: #ffa149;line-height: 34px;">Additional Device Licences</label> |
180 | <div class="col-lg-6"> | 188 | <div class="col-lg-6"> |
181 | <input type="text" placeholder="" style="border-color: #ffa149 !important;" ng-model="feature.additionalLicences" class="form-control"> | 189 | <input type="text" placeholder="" style="border-color: #ffa149 !important;" ng-model="feature.additionalLicences" class="form-control"> |
182 | </div> | 190 | </div> |
183 | </div> | 191 | </div> |
184 | </div> | 192 | </div> |
185 | </div> | 193 | </div> |
186 | 194 | ||
187 | </form> | 195 | </form> |
188 | </div> | 196 | </div> |
189 | </div> | 197 | </div> |
190 | </div> | 198 | </div> |
191 | </div> | 199 | </div> |
192 | </div> | 200 | </div> |
193 | </div> | 201 | </div> |