Commit e847b36f8bef17d3636adfb52cfbc02652f743b9

Authored by Palak Handa
1 parent 713fd16035
Exists in master and in 1 other branch paytm

minor changes

Showing 2 changed files with 32 additions and 11 deletions   Show diff stats
pages/registration.html
... ... @@ -121,9 +121,10 @@
121 121 <div class="icon-circle-d">
122 122 <i class="material-icons" style="line-height: 30px;">email</i>
123 123 </div>
124   - <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" placeholder="Email Address *" ng-blur="emailcheck(data.email)" ng-focus="removeError()" ng-change="enteremail(data.email); emailkeyPress(data.email)">
  124 + <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" placeholder="Email Address *" ng-blur="emailcheck(data.email)" ng-focus="removeError()" ng-change="enteremail(data.email); emailkeyPress(data.email)" ng-keyup="emailTest($event)">
125 125 <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label>
126   - <label ng-if="check">Email already exist.</label>
  126 + <label ng-if="check">Email already exist.</label>
  127 + <label style="color: #ff0000;margin: 5px 4px -5px 0px" ng-if="space == true" >Please remove the space.</label>
127 128 </div>
128 129 <div class="col-xs-12 col-md-6 input-wrapper f-family">
129 130 <div class="icon-circle-f">
... ... @@ -327,6 +328,7 @@
327 328 <span ng-if="data.stage == 'Product' || data.stage == 'Growth'" ng-show="data.productName == undefined || data.productName == ''" style="position:absolute; top: 10px; left: 120px; color: #999">*</span>
328 329 </div>
329 330 <div class="hideform" ng-if="prototyp">
  331 + <div class="hideform" ng-if="protyp">
330 332 <div class="col-xs-12 col-md-12 f-family line-adjust">
331 333 <strong>Product Launched? </strong>
332 334 <p class="line-space" ></p>
... ... @@ -356,42 +358,41 @@
356 358 <option value="more than 6 Months">more than 6 months</option>
357 359 </select>
358 360 </div>
359   - </div>
360   - <div class="hideform" ng-if="protyp">
  361 + </div>
361 362 <div class="col-xs-12 col-md-6 input-wrapper">
362 363 <div id="snackbar">Error ! Please fill in all fields.</div>
363 364 <div class="icon-circle-k">
364 365 <i class="material-icons" style="line-height: 31px;">web</i>
365 366 </div>
366   - <input type="text" class="text-input" ng-model="data.websiteUrl" placeholder="Website URL *" id="myBtn" name="websiteUrl" ng-change="entername(data.websiteUrl); websitekeyPress(data.websiteUrl)">
  367 + <input type="text" class="text-input" ng-model="data.websiteUrl" ng-required="Productshow == 'yes'" placeholder="Website URL *" id="myBtn" name="websiteUrl" ng-change="entername(data.websiteUrl); websitekeyPress(data.websiteUrl)">
367 368 </div>
368 369 <div class="col-xs-12 col-md-6 input-wrapper">
369 370 <div id="snackbar">Error ! Please fill in all fields.</div>
370 371 <div class="icon-circle-m">
371 372 <i class="material-icons" style="line-height: 31px;">link</i>
372 373 </div>
373   - <input type="text" class="text-input" ng-model="data.demoLink" placeholder="Link to your product/app/demo *" id="myBtn" name="demoLink" ng-change="entername(data.demoLink); annualkeyPress(data.demoLink)">
  374 + <input type="text" class="text-input" ng-model="data.demoLink" ng-required="Productshow == 'yes'" placeholder="Link to your product/app/demo *" id="myBtn" name="demoLink" ng-change="entername(data.demoLink); annualkeyPress(data.demoLink)">
374 375 </div>
375 376 <div class="col-xs-12 col-md-6 input-wrapper">
376 377 <div id="snackbar">Error ! Please fill in all fields.</div>
377 378 <div class="icon-circle-l">
378 379 <i class="material-icons" style="line-height: 31px;">format_list_numbered</i>
379 380 </div>
380   - <input type="text" ng-pattern="/^[0-9+-]*$/" maxlength="15" class="text-input" ng-model="data.numberOfEmployees" placeholder="Number of Employees *" id="myBtn" name="numberOfEmployees" ng-change="entername(data.numberOfEmployees); employeekeyPress(data.numberOfEmployees)">
  381 + <input type="text" ng-pattern="/^[0-9+-]*$/" maxlength="15" class="text-input" ng-required="Productshow == 'yes'" ng-model="data.numberOfEmployees" placeholder="Number of Employees *" id="myBtn" name="numberOfEmployees" ng-change="entername(data.numberOfEmployees); employeekeyPress(data.numberOfEmployees)">
381 382 </div>
382 383 <div class="col-xs-12 col-md-6 input-wrapper">
383 384 <div id="snackbar">Error ! Please fill in all fields.</div>
384 385 <div class="icon-circle-n">
385 386 <i class="material-icons" style="line-height: 31px;">view_stream</i>
386 387 </div>
387   - <input type="text" class="text-input" ng-model="data.revenueMonth" placeholder="Monthly Revenue *" id="myBtn" name="revenueMonth" ng-change="entername(data.revenueMonth); revenuekeyPress(data.revenueMonth)">
  388 + <input type="text" class="text-input" ng-model="data.revenueMonth" ng-required="Productshow == 'yes'" placeholder="Monthly Revenue *" id="myBtn" name="revenueMonth" ng-change="entername(data.revenueMonth); revenuekeyPress(data.revenueMonth)">
388 389 </div>
389 390 <div class="col-xs-12 col-md-12 input-wrapper f-family">
390 391 <p><b>Have you risen any funding yet?</b></p>
391 392 <div class="icon-circle-bc">
392 393 <i class="material-icons" style="line-height: 30px;">payment</i>
393 394 </div>
394   - <select name="amount" ng-model="data.amount" ng-change="amount(data.amount); amountkeyPress()" ng-click="textCheck()" required style="background-color: #fff;border-radius: 0; font-size: 12px;" id="fundingDiv">
  395 + <select name="amount" ng-model="data.amount" ng-required="Productshow == 'yes'" ng-change="amount(data.amount); amountkeyPress()" ng-click="textCheck()" required style="background-color: #fff;border-radius: 0; font-size: 12px;" id="fundingDiv">
395 396 <option selected disabled value="">Select *</option>
396 397 <option value="yes">Yes</option>
397 398 <option value="no">No</option>
... ...
... ... @@ -60,6 +60,7 @@
60 60 };
61 61  
62 62 $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/
  63 + $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/
63 64 // $scope.Textshow = "yes"
64 65 $scope.max = 100;
65 66 $scope.current = 0;
... ... @@ -114,6 +115,9 @@
114 115 };
115 116  
116 117 $scope.emailcheck = function(val) {
  118 + console.log(val)
  119 + $scope.space = /\s/g.test(val);
  120 + console.log("space",$scope.space)
117 121 if (val == undefined) {
118 122 $('#invalidEmail').css('display', 'block');
119 123 } else {
... ... @@ -176,6 +180,8 @@
176 180 }
177 181 };
178 182  
  183 +
  184 +
179 185  
180 186 /*THIS CODE FOR ENABLED SUBMIT BUTTON AFTER UPLOAD IMAGE*/
181 187 $(document).ready(
... ... @@ -390,7 +396,9 @@
390 396 $scope.stage = function(stage) {
391 397 $scope.stagekeyPress();
392 398 console.log("stage--2",stage)
  399 +
393 400 if (stage == 'Idea') {
  401 + $scope.Productshow = "no";
394 402 $scope.current = 10;
395 403 $scope.proto = true;
396 404 $scope.prototyp = false;
... ... @@ -407,6 +415,7 @@
407 415 $scope.Product = false;
408 416 $scope.Growth = false;
409 417 } else if (stage == 'Product') {
  418 + $scope.Productshow = "no";
410 419 $scope.current = 10;
411 420 $scope.proto = true;
412 421 $scope.prototyp = true;
... ... @@ -423,10 +432,11 @@
423 432 $scope.Product = true;
424 433 $scope.Growth = false;
425 434 } else if (stage == 'Growth') {
  435 + $scope.Productshow = "yes";
426 436 $scope.current = 10;
427 437 $scope.proto = false;
428   - $scope.prototyp = false;
429   - $scope.protyp = true;
  438 + $scope.prototyp = true;
  439 + $scope.protyp = false;
430 440 $scope.market = true;
431 441 $scope.risks = true;
432 442 $scope.team = true;
... ... @@ -440,6 +450,12 @@
440 450 $scope.data.stage = stage;
441 451 }
442 452 }
  453 +
  454 + $scope.emailTest = function(s){
  455 + $scope.space = /\s/g.test(s.delegateTarget.value);
  456 + console.log("space",$scope.space)
  457 +
  458 + }
443 459 // $scope.enterbusiness = function(business) {
444 460 // console.log("business", business);
445 461 // if (name == undefined) {
... ... @@ -777,11 +793,15 @@
777 793 /*open videos ends here*/
778 794  
779 795 $scope.removeError = function() {
  796 + console.log("doooo")
780 797 $('#invalidEmail').css('display', 'none');
781 798 $('#alreadyExist').css('display', 'none');
782 799 };
783 800  
784 801 $scope.emailcheck = function(val) {
  802 + consol.log("kdsbd")
  803 + $scope.space = /\s/g.test(val);
  804 + console.log("space",$scope.space)
785 805 if (val == undefined) {
786 806 $('#invalidEmail').css('display', 'block');
787 807 } else {
... ...