-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// import { computed } from '@ember/object'; | ||
import ModalBase from 'open-event-frontend/components/modals/modal-base'; | ||
|
||
export default class extends ModalBase { | ||
isSmall = true; | ||
|
||
// @computed('this.otp') | ||
// get isOTPvalid() { | ||
// return this.otp.length === 6; | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import ModalBase from 'open-event-frontend/components/modals/modal-base'; | ||
|
||
export default class extends ModalBase { | ||
isSmall = true; | ||
isWalletSelected = false; | ||
mobileNumber = ''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div class="header"> | ||
{{t 'Amount to be paid:'}} {{currency-symbol currency}} {{amount}} | ||
</div> | ||
|
||
<div class="content"> | ||
{{t 'Enter OTP sent to mobile number'}} | ||
<div class="ui {{if isLoading 'loading'}} form" autocomplete="off"> | ||
{{input type='number' name='otp' value=otp required=true}} | ||
</div> | ||
</div> | ||
|
||
<div class="actions"> | ||
<button class="ui green button" disabled={{isOTPvalid}}> | ||
{{t 'Verify'}} | ||
</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<div class="header"> | ||
{{t 'Amount to be paid:'}} {{currency-symbol currency}} {{amount}} | ||
</div> | ||
|
||
<div class="content"> | ||
<div class="muted small text"> | ||
{{t 'Select an option to pay'}} | ||
</div> | ||
<div class="ui {{if isLoading 'loading'}} form" autocomplete="off" > | ||
<div class="field"> | ||
{{ui-radio name='payment_mode' value='paytm' onChange=(action (mut isWalletSelected))}} | ||
{{t 'Paytm Wallet'}}<img src="/images/payment-logos/paytm.png" alt="paytm"> | ||
</div> | ||
{{#if isWalletSelected}} | ||
<div class="field"> | ||
<div class="label"> | ||
{{t 'Please enter your Paytm registered Mobile Number to continue'}} | ||
</div> | ||
{{input type='number' name='mobile_number' value=mobileNumber required=true}} | ||
</div> | ||
{{/if}} | ||
</div> | ||
</div> | ||
|
||
<div class="actions"> | ||
<button type="button" class="ui black button" {{action 'close'}}> | ||
{{t 'Cancel'}} | ||
</button> | ||
<button {{action openOTPController}} class="ui green button" disabled={{not isWalletSelected}}> | ||
{{t 'Proceed'}} | ||
</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters