Commit 1ef0fae0451fe576fc57daad4eadb5f98e72b891
1 parent
19a2e7b14b
Exists in
master
confirmation page change
Showing
2 changed files
with
39 additions
and
21 deletions
Show diff stats
pages/confirmation.html
... | ... | @@ -2,15 +2,13 @@ |
2 | 2 | <head> |
3 | 3 | </head> |
4 | 4 | <body> |
5 | - <div class="col-xs-12 col-md-10 col-md-offset-3 city-meetup card-color-confirm"> | |
6 | - <!-- <center> --> | |
7 | - <h3 style="text-align:center;margin-top:4%;position:relative;color: rgb(25, 104, 157);font-family: 'BenchNine', sans-serif;">Thank you for registering with us.</h3> | |
8 | - <p style="text-align:center;font-size:20px;position:relative;margin-bottom: 4%;">You will seen hear from us with further details :)</p> | |
9 | - <!-- <footer> | |
10 | - <img id="footer" class="img-responsive banner"> | |
11 | - <center class="footer"><a class="footer-link" href="http://www.viithiisys.com/" target="_blank"></a> | |
12 | - </center> | |
13 | - </footer> --> | |
5 | + <div class="col-xs-12 col-md-10 col-md-offset-3 city-meetup card-color-confirm" ng-if="approvedMsg"> | |
6 | + <h3 style="text-align:center;margin-top:4%;position:relative;color: rgb(25, 104, 157);font-family: 'BenchNine', sans-serif;">Thank you for registering with us.</h3> | |
7 | + <p style="text-align:center;font-size:20px;position:relative;margin-bottom: 4%;">You will seen hear from us with further details :)</p> | |
8 | + </div> | |
9 | + <div class="col-xs-12 col-md-10 col-md-offset-3 city-meetup card-color-confirm" ng-if="disApprovedMsg"> | |
10 | + <h3 style="text-align:center;margin-top:4%;position:relative;color: red;font-family: 'BenchNine', sans-serif;">Your account status is disapprove.</h3> | |
11 | + <!-- <p style="text-align:center;font-size:20px;position:relative;margin-bottom: 4%;">You will seen hear from us with further details :)</p> --> | |
14 | 12 | </div> |
15 | 13 | </body> |
16 | 14 | </html> | ... | ... |
script.js
... | ... | @@ -44,7 +44,7 @@ |
44 | 44 | // route for the confirmation page |
45 | 45 | .when('/confirmation', { |
46 | 46 | templateUrl: 'pages/confirmation.html', |
47 | - controller: 'registrationController' | |
47 | + controller: 'confirmationController' | |
48 | 48 | }) |
49 | 49 | |
50 | 50 | .otherwise({ |
... | ... | @@ -632,17 +632,16 @@ |
632 | 632 | "currency": "INR", |
633 | 633 | "status": "pending" |
634 | 634 | } |
635 | - var myParam = window.location.href.split('status=').splice(1).join('').split('&')[0] | |
636 | - console.log(window.location.href,"myParam",myParam) | |
637 | - if(myParam){ | |
638 | - if(myParam == "approved"){ | |
639 | - $scope.showResponse = true; | |
640 | - }else{ | |
641 | - $scope.disApprovedMsg = true; | |
642 | - } | |
643 | - }else{ | |
644 | - $scope.disApprovedMsg = true; | |
645 | - } | |
635 | + // var myParam = window.location.href.split('status=').splice(1).join('').split('&')[0] | |
636 | + // if(myParam){ | |
637 | + // if(myParam == "approved"){ | |
638 | + // $scope.showResponse = true; | |
639 | + // }else{ | |
640 | + // $scope.disApprovedMsg = true; | |
641 | + // } | |
642 | + // }else{ | |
643 | + // $scope.disApprovedMsg = true; | |
644 | + // } | |
646 | 645 | |
647 | 646 | $scope.removeError = function() { |
648 | 647 | $('#invalidEmail').css('display', 'none'); |
... | ... | @@ -904,6 +903,27 @@ |
904 | 903 | |
905 | 904 | }); |
906 | 905 | |
906 | +scotchApp.controller('confirmationController', function($scope, $http, $location, $route, BASE_URL) { | |
907 | + $scope.approvedMsg = false; | |
908 | + $scope.disApprovedMsg = false; | |
909 | + | |
910 | + var myParam = window.location.href.split('status=').splice(1).join('').split('&')[0] | |
911 | + console.log(myParam) | |
912 | + // if(myParam){ | |
913 | + if(myParam == "approved"){ | |
914 | + $scope.approvedMsg = true; | |
915 | + $scope.disApprovedMsg = false; | |
916 | + }else{ | |
917 | + $scope.approvedMsg = false; | |
918 | + $scope.disApprovedMsg = true; | |
919 | + } | |
920 | + // }else{ | |
921 | + // $scope.disApprovedMsg = true; | |
922 | + // } | |
923 | + | |
924 | +}); | |
925 | + | |
926 | + | |
907 | 927 | scotchApp.controller('ambassadorController', function($scope, $http, $location, $route, BASE_URL) { |
908 | 928 | $scope.data = {}; |
909 | 929 | $scope.check = false; | ... | ... |