Commit 8ebb2f9e7ad16922d4752b32d46931f94162e8b3
1 parent
7e481a0681
Exists in
master
toogle implemented in view company and view fuel vendor page
Showing
5 changed files
with
3 additions
and
12 deletions
Show diff stats
app/partials/ContactView/ContactView.controller.js
... | ... | @@ -4,10 +4,6 @@ |
4 | 4 | angular.module('acufuel') |
5 | 5 | |
6 | 6 | .controller('ContactViewController', ['$scope', '$uibModal', 'ContactViewService', 'ViewCompanyService', 'ViewcontactService', function($scope, $uibModal, ContactViewService, ViewCompanyService, ViewcontactService) { |
7 | - // $(function() { | |
8 | - // $('#toggle-one120').bootstrapToggle(); | |
9 | - // $('#toggle-two21').bootstrapToggle(); | |
10 | - // }) | |
11 | 7 | |
12 | 8 | $(document).ready(function() { |
13 | 9 | $('#contacts').DataTable(); | ... | ... |
app/partials/ContactView/ContactView.html
... | ... | @@ -86,12 +86,6 @@ |
86 | 86 | <td>{{contact.title}}</td> |
87 | 87 | <td> |
88 | 88 | <toggle ng-model="contact.priceEmail" ng-change="changePriceEmail(contact.id, $index)"></toggle> |
89 | - | |
90 | - <!-- <div class="my-toggle-switch" ng-click="changePriceEmail()"> | |
91 | - <div> | |
92 | - <input id="toggle-one12{{$index}}" checked type="checkbox" data-size="mini" data-width="110" data-toggle="toggle" data-on="PRICE EMAIL ON" data-off="PRICE EMAIL OFF"> | |
93 | - </div> | |
94 | - </div> --> | |
95 | 89 | </td> |
96 | 90 | <td>{{contact.userName}}</td> |
97 | 91 | <td>{{contact.password}}</td> | ... | ... |
app/partials/viewCompany/viewCompany.controller.js
app/partials/viewCompany/viewCompany.html
... | ... | @@ -291,7 +291,7 @@ |
291 | 291 | </thead> |
292 | 292 | <tbody> |
293 | 293 | <tr ng-repeat="contact in companyContactList"> |
294 | - <td class="my-toggle-switch"><input id="{{contact.id}}" checked type="checkbox" data-size="mini" data-toggle="toggle"></td> | |
294 | + <td><toggle ng-model="contact.priceEmail" ng-change="changePriceEmail(contact.id, $index)"></toggle></td> | |
295 | 295 | <td> |
296 | 296 | <a href="#!/viewContact/{{contact.id}}"> |
297 | 297 | {{contact.firstName}} | ... | ... |
app/partials/viewFuelVendor/viewFuelVendor.html
... | ... | @@ -293,7 +293,7 @@ |
293 | 293 | </thead> |
294 | 294 | <tbody> |
295 | 295 | <tr ng-repeat="contact in vendorContactList"> |
296 | - <td class="my-toggle-switch"><input id="{{contact.id}}" checked type="checkbox" data-size="mini" data-toggle="toggle"></td> | |
296 | + <td><toggle ng-model="contact.priceEmail" ng-change="changePriceEmail(contact.id, $index)"></toggle></td> | |
297 | 297 | <td> |
298 | 298 | <a href="#!/viewContact/{{contact.id}}"> |
299 | 299 | {{contact.firstName}} | ... | ... |