-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[5.3] MSTR-308: Show credit card not accepted dialog on login and ref…
…resh (#1201)
- Loading branch information
1 parent
cd7e270
commit a7f9fdd
Showing
9 changed files
with
114 additions
and
46 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
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
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
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
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
21 changes: 16 additions & 5 deletions
21
src/apps/myaccount/submodules/creditCard/views/disclaimerDialog.html
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 |
---|---|---|
@@ -1,16 +1,27 @@ | ||
<div id="myaccount_creditcard_disclaimer_dialog" class="clearfix"> | ||
<div class="disclaimer-dialog-notice"> | ||
{{{i18n.creditCard.surchargeNotice}}} | ||
<br/><br/> | ||
{{{i18n.creditCard.disclaimer.message}}} | ||
{{#if isCardAccepted}} | ||
{{{i18n.creditCard.surchargeNotice}}} | ||
<br/><br/> | ||
{{{i18n.creditCard.disclaimer.message}}} | ||
{{else}} | ||
{{{i18n.creditCard.disclaimer.noCardMessage}}} | ||
{{/if}} | ||
</div> | ||
{{#if isCardAccepted}} | ||
<div class="disclaimer-dialog-agreement"> | ||
{{#monsterCheckbox "raw-label" i18n.creditCard.add.agreement}} | ||
<input type="checkbox" name="credit_card_accept_agreement" /> | ||
{{/monsterCheckbox}} | ||
</div> | ||
{{/if}} | ||
<div class="disclaimer-dialog-footer"> | ||
<button id="myaccount_creditcard_disclaimer_accept" type="button" class="monster-button-primary monster-button-small pull-right" disabled>{{i18n.creditCard.disclaimer.saveAndContinue}}</button> | ||
<button id="myaccount_creditcard_disclaimer_payments" type="button" class="monster-button-small pull-right">{{i18n.creditCard.disclaimer.updatePaymentMethod}}</button> | ||
{{#if isCardAccepted}} | ||
<button id="myaccount_creditcard_disclaimer_accept" type="button" class="monster-button monster-button-primary pull-right" disabled>{{i18n.creditCard.disclaimer.saveAndContinue}}</button> | ||
{{/if}} | ||
<button id="myaccount_creditcard_disclaimer_payments" type="button" class="monster-button pull-right">{{i18n.creditCard.disclaimer.updatePaymentMethod}}</button> | ||
{{#unless isCardAccepted}} | ||
<button id="myaccount_creditcard_disclaimer_cancel" type="button" class="monster-button monster-button-ghost pull-right">{{i18n.cancel}}</button> | ||
{{/unless}} | ||
</div> | ||
</div> |