Commit 4dcbfdfbffa609e632d1e60be86266e3894cf52f

Authored by Shilpi Saini
1 parent 35d97582a7
Exists in master

validation required

pages/campusAmbassadorForm.html
... ... @@ -10,89 +10,92 @@
10 10 </div>
11 11 </div>
12 12 <!-- CLOSE HEADER -->
13   - <form name="campusAmbassadorForm">
  13 + <form name="applicantForm">
14 14 <div class="col-xs-12 col-md-8 col-md-offset-2">
15 15 <div class="form-all">
16   - <h4 class="title">CAMPUS AMBASSADOR FORM</h4>
17   - <div class="col-xs-12 col-md-8 col-md-offset-2 input-wrapper" style="color: #FF6600;">GENERAL DETAILS</div>
18   - <div class="col-xs-12 col-md-8 col-md-offset-2 input-wrapper" >
19   - <div class="form-group">
20   - <label>Name:</label>
21   - <input type="name" class="form-control" ng-model="data.name" required>
  16 + <div class="col-xs-12 col-md-8 col-md-offset-2 input-wrapper">
  17 + <h4 class="title">CAMPUS AMBASSADOR FORM</h4>
  18 + <div style="color: #FF6600;margin-bottom: 15px;">GENERAL DETAILS</div>
  19 + <div>
  20 + <div class="form-group">
  21 + <label>Name:</label>
  22 + <input type="name" class="form-control" ng-model="data.name" required>
  23 + </div>
  24 + <div class="form-group">
  25 + <label>Contact Details:</label>
  26 + <input type="text" class="form-control" ng-model="data.number" required>
  27 + <!-- <label class="error-message f-family" id="invalidNumber">Please enter only numeric value.</label> -->
  28 + </div>
  29 + <div class="form-group">
  30 + <label>Email ID:</label>
  31 + <input type="email" class="form-control" ng-model="data.email" required>
  32 + </div>
  33 + <div class="form-group">
  34 + <label>College Name:</label>
  35 + <input type="collegeName" class="form-control" ng-model="data.collegeName" required>
  36 + </div>
  37 + <div class="form-group">
  38 + <label>State of your College:</label>
  39 + <input type="collegeState" class="form-control" ng-model="data.collegeState" required>
  40 + </div>
22 41 </div>
23   - <div class="form-group">
24   - <label>Contact Details:</label>
25   - <input type="text" class="form-control" ng-model="data." required>
26   - <!-- <label class="error-message f-family" id="invalidNumber">Please enter only numeric value.</label> -->
  42 + <div style="color: #FF6600;">EVENT</div>
  43 + <div style="margin-bottom: 15px;">In this section, let us know about the event you plan to organize under Startup Jalsa Ideate Edition. We understand that some of the information you enter here could be tentative. </div>
  44 + <div>
  45 + <div class="form-group">
  46 + <label>Workshop Name:</label>
  47 + <input type="workshopName" class="form-control" ng-model="data.workshopName" placeholder="University events must be named after the institution (e.g., Ideate IIT Delhi)" required>
  48 + </div>
  49 + <div class="form-group">
  50 + <label>Workshop Type:</label>
  51 + <select class="form-control" ng-model="data.workshopType" required>
  52 + <option name="workshopType" selected disabled value="">Choose Type</option>
  53 + <option value="How to find startup ideas">How to find startup ideas</option>
  54 + <option value="How to build a MVP">How to build a MVP</option>
  55 + <option value="How to Start a startup">How to Start a startup</option>
  56 + <option value="How to create pitch deck">How to create pitch deck</option>
  57 + <option value="How to Pitch to investors">How to Pitch to investors</option>
  58 + </select>
  59 + </div>
  60 + <div class="form-group">
  61 + <label>Tell us about the local community you will serve with this workshop.</label>
  62 + <input type="community" class="form-control" ng-model="data.community" placeholder="Who will be in your intended audience?" required>
  63 + </div>
  64 + <div class="form-group">
  65 + <label>Describe the venue</label>
  66 + <input type="venue" class="form-control" ng-model="data.venue" placeholder="Tell us about the place in which you plan to host your workshop. If you are not sure where it will be, tell us the venues you are considering." required>
  67 + </div>
  68 + <div class="form-group">
  69 + <label>How many people will attend your workshop?</label>
  70 + <input type="people" class="form-control" ng-model="data.people" placeholder=" If you are not sure, give us your best guess. " required>
  71 + </div>
27 72 </div>
28   - <div class="form-group">
29   - <label>Email ID:</label>
30   - <input type="email" class="form-control" ng-model="data.email" required>
31   - </div>
32   - <div class="form-group">
33   - <label>College Name:</label>
34   - <input type="text" class="form-control" ng-model="data.collegeName" required>
35   - </div>
36   - <div class="form-group">
37   - <label>State of your College:</label>
38   - <input type="text" class="form-control" ng-model="data.collegeState" required>
39   - </div>
40   - </div>
41   - <div class="col-xs-12 col-md-8 col-md-offset-2 input-wrapper" style="color: #FF6600;">EVENT</div>
42   - <div class="col-xs-12 col-md-8 col-md-offset-2 input-wrapper">In this section, let us know about the event you plan to organize under Startup Jalsa Ideate Edition. We understand that some of the information you enter here could be tentative. </div>
43   - <div class="col-xs-12 col-md-8 col-md-offset-2 input-wrapper" >
44   - <div class="form-group">
45   - <label>Workshop Name:</label>
46   - <input type="name" class="form-control" ng-model="data.workshopName" placeholder="University events must be named after the institution (e.g., Ideate IIT Delhi)" required>
47   - </div>
48   - <div class="form-group">
49   - <label>Workshop Type:</label>
50   - <select class="form-control" ng-model="data.workshopType" required>
51   - <option name="stage" selected disabled value="">Choose Type</option>
52   - <option value="How to find startup ideas">How to find startup ideas</option>
53   - <option value="How to build a MVP">How to build a MVP</option>
54   - <option value="How to Start a startup">How to Start a startup</option>
55   - <option value="How to create pitch deck">How to create pitch deck</option>
56   - <option value="How to Pitch to investors">How to Pitch to investors</option>
57   - </select>
58   - </div>
59   - <div class="form-group">
60   - <label>Tell us about the local community you will serve with this workshop.</label>
61   - <input type="email" class="form-control" ng-model="data.community" placeholder="Who will be in your intended audience?" required>
62   - </div>
63   - <div class="form-group">
64   - <label>Describe the venue</label>
65   - <input type="text" class="form-control" ng-model="data.venue" placeholder="Tell us about the place in which you plan to host your workshop. If you are not sure where it will be, tell us the venues you are considering." required>
66   - </div>
67   - <div class="form-group">
68   - <label>How many people will attend your workshop?</label>
69   - <input type="text" class="form-control" ng-model="data.people" placeholder=" If you are not sure, give us your best guess. " required>
70   - </div>
71   - </div>
72   - <div class="col-xs-12 col-md-8 col-md-offset-2 input-wrapper" style="color: #FF6600;">ABOUT YOU</div>
73   - <div class="col-xs-12 col-md-8 col-md-offset-2 input-wrapper" >
74   - <div class="form-group">
75   - <label> What are you passionate about in your own life?</label>
76   - <input type="name" class="form-control" ng-model="data.life" placeholder="E.g., your work, your community, your creative projects ..." required>
77   - </div>
78   - <div class="form-group">
79   - <label>List the events which you have organised before</label>
80   - <input type="email" class="form-control" ng-model="data.events" placeholder=" Provide website/facebook/Instagram link of the event, if available" required>
81   - </div>
82   - <div class="form-group">
83   - <label>What made you decide you wanted to become the Campus Ambassador of Startup Jalsa? What inspired you?</label>
84   - <input type="text" class="form-control" ng-model="data.inspired" required>
85   - </div>
86   - <div class="form-group">
87   - <label>What do we need to know about you that we didn't ask?</label>
88   - <input type="text" class="form-control" ng-model="data.task" required>
  73 + <div style="color: #FF6600;margin-bottom: 15px;">ABOUT YOU</div>
  74 + <div>
  75 + <div class="form-group">
  76 + <label> What are you passionate about in your own life?</label>
  77 + <input type="life" class="form-control" ng-model="data.life" placeholder="E.g., your work, your community, your creative projects ..." required>
  78 + </div>
  79 + <div class="form-group">
  80 + <label>List the events which you have organised before</label>
  81 + <input type="events" class="form-control" ng-model="data.events" placeholder=" Provide website/facebook/Instagram link of the event, if available" required>
  82 + </div>
  83 + <div class="form-group">
  84 + <label>What made you decide you wanted to become the Campus Ambassador of Startup Jalsa? What inspired you?</label>
  85 + <input type="inspired" class="form-control" ng-model="data.inspired" required>
  86 + </div>
  87 + <div class="form-group">
  88 + <label>What do we need to know about you that we didn't ask?</label>
  89 + <input type="task" class="form-control" ng-model="data.task" required>
  90 + </div>
89 91 </div>
90 92 </div>
91 93 <div class="clearfix"></div>
92 94 <div class="text-center">
93   - <input type="submit" class="btn submit-button-form" style="outline: none;" value="Submit" ng-click="formRegister()">
  95 + <input type="submit" class="btn submit-button-form" style="outline: none;" ng-disabled="applicantForm.$invalid" value="Submit" ng-click="formRegister()">
94 96 </div>
95 97 </div>
  98 + </div>
96 99 </form>
97 100 <!-- CLOSE FORM -->
98 101 <!-- </div> CLOSE CHECK VIEW -->
... ...
pages/paytmCheckout.html
... ... @@ -131,6 +131,7 @@
131 131 <input type="submit" class="btn submit-button-form" style="outline: none;" ng-disabled="applicantForm.$invalid" value="Submit" ng-click="register()">
132 132 </div>
133 133 </div>
  134 + </div>
134 135 </form>
135 136 <!-- CLOSE FORM -->
136 137 <!-- </div> CLOSE CHECK VIEW -->
... ...
... ... @@ -1351,29 +1351,9 @@ scotchApp.controller(&#39;campusAmbassadorController&#39;, function($q, $scope, $http, $
1351 1351 "status": "pending",
1352 1352 }
1353 1353  
1354   - $scope.ngShowhide = false;
1355   - $scope.GetValue = function(){
1356   - if($scope.data.sector == "Other"){
1357   - $scope.ngShowhide = true;
1358   - }else{
1359   - $scope.ngShowhide = false;
1360   - }
1361   - }
1362   -
1363   - $scope.ngShow = false;
1364   - $scope.getValue = function(){
1365   - if($scope.data.hear == "Other"){
1366   - $scope.ngShow = true;
1367   - }else{
1368   - $scope.ngShow = false;
1369   - }
1370   - }
1371   -
1372 1354 $scope.formRegister = function() {
1373 1355 //Analytics.trackEvent('register', 'click', 'Registration');
1374 1356 $scope.loading = true;
1375   - //$scope.data.uploadFile = $scope.base64textString;
1376   - $scope.infoForm = true;
1377 1357 $scope.ticketAmnt = 500;
1378 1358 $scope.detail = {};
1379 1359 $scope.data.phone = "+91"+$scope.data.number;
... ...