Commit d67310a6c2b21dc1e805d9543b10a6e55eea43dc

Authored by Shilpi Saini
1 parent 3b3c02901c
Exists in master

new page design & integrate api

Showing 2 changed files with 68 additions and 25 deletions   Show diff stats
pages/ambassador.html
1   -<div class="header">
  1 +<!-- <div class="header">
2 2 <div>
3   - <h1 class="startup-jalsa">STARTUP JALSA 2018</h1>
  3 + <h1 class="startup-jalsa">STARTUP JALSA 2019</h1>
4 4 </div>
5 5 <div class="clearfix"></div>
6   -</div>
  6 +</div> -->
7 7 <!-- CLOSE HEADER -->
8   -<form name="applicantForm" id="signupForm">
  8 +<!-- <form name="applicantForm" id="signupForm">
9 9 <div class="col-xs-12 col-md-4 col-md-offset-4">
10 10 <div class="form-all">
11 11 <table style="width: 100%;">
12 12 <tr>
13 13 <td>
14   - <div class="step-one-form" >
  14 + <div class="step-one-form" > -->
15 15 <!-- form step 1 -->
16   - <div class="col-xs-12 input-wrapper" >
  16 + <!-- <div class="col-xs-12 input-wrapper" >
17 17 <div id="snackbar">Error ! Please fill in all fields.</div>
18 18 <div class="icon-circle-c">
19 19 <i class="material-icons" style="line-height: 31px;">person</i>
... ... @@ -26,19 +26,19 @@
26 26 <div class="icon-circle-d">
27 27 <i class="material-icons" style="line-height: 30px;">email</i>
28 28 </div>
29   - <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" placeholder="Email Address" ng-change="enteremail(data.email); emailkeyPress(data.email)">
  29 + <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" placeholder="Email Address" ng-change="enteremail(data.email); emailkeyPress(data.email)"> -->
30 30 <!-- <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label>
31 31 <label ng-if="check">Email already exist.</label> -->
32   - </div>
  32 + <!-- </div>
33 33 <div class="clearfix"></div>
34 34 <div class="col-xs-12 input-wrapper" >
35 35 <div class="icon-circle-e">
36 36 <i class="material-icons" style="line-height: 30px;">phone</i>
37 37 </div>
38   - <input type="text" ng-pattern="/^\d*(?:\.\d{1,2})?$/" title="Please enter only numberic numbers" maxlength="10" required class="text-input" ng-model="data.mobile" placeholder="Mobile No." ng-change="enternumber(data.mobile); phonekeyPress(data.mobile)">
  38 + <input type="text" ng-pattern="/^\d*(?:\.\d{1,2})?$/" title="Please enter only numberic numbers" maxlength="10" required class="text-input" ng-model="data.mobile" placeholder="Mobile No." ng-change="enternumber(data.mobile); phonekeyPress(data.mobile)"> -->
39 39 <!-- <label class="error-message f-family" id="invalidNumber">Please enter only numeric value in mobile number field.</label> -->
40 40 <!-- <label ng-if="numberCheck">Contact Number already exist.</label> -->
41   - </div>
  41 + <!-- </div>
42 42 <div class="clearfix"></div>
43 43 <div class="col-xs-12 input-wrapper" >
44 44 <div class="icon-circle-o">
... ... @@ -46,33 +46,76 @@
46 46 </div>
47 47 <input type="number" ng-pattern="/^\d*(?:\.\d{1,2})?$/" title="Please enter only numberic numbers" maxlength="10" required class="text-input" ng-model="data.discount" placeholder="Percentage Discount" ng-change="enternumber(data.discount); discountkeyPress(data.discount)">
48 48 </div>
49   - </div>
  49 + </div> -->
50 50 <!-- close step-one-form -->
51   - </td>
  51 + <!-- </td>
52 52 </tr>
53 53 </table>
54   - </div>
  54 + </div> -->
55 55 <!-- CLOSE form-all -->
56 56 <!-- </div> -->
57   - <div class="clearfix"></div>
  57 + <!-- <div class="clearfix"></div>
58 58 <div style="margin-bottom: 12%;" class="text-center">
59 59 <input type="submit" class="btn submit-button" ng-disabled="applicantForm.$invalid" value="Submit" ng-click="submit()">
60 60 </div>
61   - </div>
  61 + </div> -->
62 62 <!-- col-xs-12 col-md-8 col-md-offset-2 -->
63   - <footer>
  63 + <!-- <footer>
64 64 <img id="footer" class="img-responsive banner">
65 65 <center class="footer"> Powered By <a class="footer-link" href="http://www.viithiisys.com/" target="_blank">Viithiisys Technologies.</a>
66 66 </center>
67 67 </footer>
68   -</form>
  68 +</form> -->
69 69 <!-- </div> CLOSE CHECK VIEW -->
70   -<div ng-if="verifyView">
  70 +<!-- <div ng-if="verifyView">
71 71 <div class="text-center">
72 72 <input type="button" class="btn submit-button" ng-disabled="applicantForm.$invalid" value="check the status" ng-click="update()">
73 73 </div>
74   -</div>
75   -</div> <!-- CLOSE NEW-CONTROLLER -->
  74 +</div> -->
  75 +<!-- </div> CLOSE NEW-CONTROLLER -->
  76 +
  77 +<div class="header">
  78 + <div>
  79 + </div>
  80 + <div class="clearfix"></div>
  81 + <div class="myLoaderWrap" ng-show="loading">
  82 + <img class="ajax-loader" src="images/loader.gif">
  83 + </div>
  84 + </div>
  85 + <!-- CLOSE HEADER -->
  86 + <form name="applicantForm">
  87 + <div class="col-xs-12 col-md-8 col-md-offset-2">
  88 + <div class="form-all">
  89 + <h4 class="title">AMBASSADOR FORM</h4>
  90 + <p></p>
  91 + <div class="col-xs-12 col-md-8 col-md-offset-2 input-wrapper" >
  92 + <div class="form-group">
  93 + <label>Name: *</label>
  94 + <input type="name" class="form-control" ng-model="data.name" required>
  95 + </div>
  96 + <div class="form-group">
  97 + <label>Email: *</label>
  98 + <input type="email" class="form-control" ng-model="data.email" required>
  99 + </div>
  100 + <div class="form-group">
  101 + <label>Phone No: *</label>
  102 + <input type="text" class="form-control" maxlength="10" ng-model="data.mobile" required>
  103 + <!-- <label class="error-message f-family" id="invalidNumber">Please enter only numeric value.</label> -->
  104 + </div>
  105 + <div class="form-group">
  106 + <label>Percentage Discount: *</label>
  107 + <!-- <input type="number" class="form-control" ng-model="data.startupName" required> -->
  108 + <input type="number" class="form-control" maxlength="10" ng-model="data.discount" required>
  109 + </div>
  110 + </div>
  111 + <div class="clearfix"></div>
  112 + <div class="text-center">
  113 + <input type="submit" class="btn submit-button-form" style="outline: none;" ng-disabled="applicantForm.$invalid" value="Submit" ng-click="submit()">
  114 + </div>
  115 + </div>
  116 + </div>
  117 + </form>
  118 +
76 119 <div class="modal fade" id="myModal" role="dialog">
77 120 <div class="modal-dialog" style="left: auto;">
78 121 <div class="modal-content">
... ...
... ... @@ -1466,12 +1466,12 @@ scotchApp.controller(&#39;ambassadorController&#39;, function($scope, $http, $location,
1466 1466 $scope.numberCheck = false;
1467 1467  
1468 1468 $scope.submit = function() {
1469   - //var randomNumber = ""+Math.random();
1470   - var nameSpliced = $scope.data.name.slice(0,5);
1471   - //var numberSpliced = randomNumber.slice(2,4);
  1469 + var randomNumber = ""+Math.random();
  1470 + var nameSpliced = $scope.data.name.slice(0,3);
  1471 + var numberSpliced = randomNumber.slice(2,4);
1472 1472 //var numberSpliced = "90";
1473   - //$scope.data.referalToken = nameSpliced+numberSpliced;
1474   - $scope.data.referalToken = nameSpliced;
  1473 + $scope.data.referalToken = nameSpliced+numberSpliced;
  1474 + //$scope.data.referalToken = nameSpliced;
1475 1475 $scope.data.referalToken = $scope.data.referalToken.toUpperCase();
1476 1476 //$scope.data.referalToken = $scope.data.referalToken.toString();
1477 1477 $http({
... ...