Commit e01ea6e4594932412c5567fbf5a883e88e1c63f7
1 parent
9406f4e4f7
Exists in
master
and in
1 other branch
validation required in upload file
Showing
2 changed files
with
11 additions
and
3 deletions
Show diff stats
pages/registration.html
... | ... | @@ -104,6 +104,7 @@ |
104 | 104 | <div class="form-group"> |
105 | 105 | <label>Attach Pitch Deck: *</label> |
106 | 106 | <input type="file" class="form-control-file" ng-model="data.uploadFile" id="filePicker" accept=".png, .jpg, .jpeg, .pdf, .ppt"> |
107 | + <!-- <span ng-show="fileSelect" class=form-group-text>Please Select a File.</span> --> | |
107 | 108 | </div> |
108 | 109 | <div class=form-group-text> |
109 | 110 | Fields marked with "<b>*</b>" are mandatory. |
... | ... | @@ -269,7 +270,7 @@ |
269 | 270 | </tr> |
270 | 271 | </table> --> |
271 | 272 | <div class="text-center"> |
272 | - <input type="submit" class="btn submit-button-form" ng-disabled="applicantForm.$invalid || disabled" value="Submit" ng-click="submit()"> | |
273 | + <input type="submit" class="btn submit-button-form" id="disableButton" ng-disabled="applicantForm.$invalid || disabled" value="Submit" ng-click="submit()"> | |
273 | 274 | </div> |
274 | 275 | </div> |
275 | 276 | <!-- CLOSE form-all --> | ... | ... |
script.js
... | ... | @@ -655,7 +655,7 @@ |
655 | 655 | reader.onload = function(readerEvt) { |
656 | 656 | var binaryString = readerEvt.target.result; |
657 | 657 | $scope.base64textString = btoa(binaryString); |
658 | - console.log("base64textarea",$scope.base64textString) | |
658 | + //console.log("base64textarea",$scope.base64textString) | |
659 | 659 | $scope.data.uploadFile = file.name; |
660 | 660 | }; |
661 | 661 | |
... | ... | @@ -716,7 +716,12 @@ |
716 | 716 | |
717 | 717 | $scope.submit = function() { |
718 | 718 | |
719 | - $scope.ticketAmnt = 500; | |
719 | + $scope.fileSelect = false; | |
720 | + if($scope.data.uploadFile == null){ | |
721 | + $scope.fileSelect = true; | |
722 | + }else{ | |
723 | + $scope.fileSelect = false; | |
724 | + $scope.ticketAmnt = 500; | |
720 | 725 | // if($scope.tokencheck == false){ |
721 | 726 | // $scope.data.referalToken = null; |
722 | 727 | // } |
... | ... | @@ -849,6 +854,8 @@ |
849 | 854 | }, function myError(error) { |
850 | 855 | |
851 | 856 | }); |
857 | + | |
858 | + } | |
852 | 859 | |
853 | 860 | // }) |
854 | 861 | ... | ... |