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
5 changed files
with
69 additions
and
1 deletion.
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
11 changes: 11 additions & 0 deletions
11
assets/javascripts/discourse/routes/league-subscriptions-show.js.es6
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 Subscriptions from '../models/subscriptions'; | ||
|
||
export default Discourse.Route.extend({ | ||
model(opts) { | ||
return Subscriptions.findById(opts.user_id, opts.id); | ||
}, | ||
|
||
setupController(controller, model) { | ||
controller.setProperties({ model }); | ||
} | ||
}); |
47 changes: 47 additions & 0 deletions
47
assets/javascripts/discourse/templates/league/subscriptions/show.hbs
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,47 @@ | ||
<div class="league checkout receipt"> | ||
<div class="user-table"> | ||
<div class="wrapper"> | ||
<a href="/u/{{currentUser.username}}/billing">← Back to Billing</a> | ||
<form class="form-horizontal" id="verify-state"> | ||
<div class="billing-section"> | ||
<h3>{{i18n 'league.checkout.payment_details'}}</h3> | ||
<div class="control-group"> | ||
<label class="control-label">{{i18n 'league.transaction_id'}}</label> | ||
<div class="controls expiration">{{ model.transaction.transaction_id }}</div> | ||
</div> | ||
<div class="control-group"> | ||
<label class="control-label">{{i18n 'league.product'}}</label> | ||
<div class="controls expiration">{{ model.transaction.product_name }}</div> | ||
</div> | ||
<div class="control-group"> | ||
<label class="control-label">{{i18n 'league.transaction_date'}}</label> | ||
<div class="controls expiration">{{format-league-date model.transaction.transaction_date }}</div> | ||
</div> | ||
<div class="control-group"> | ||
<label class="control-label">{{i18n 'league.transaction_amount'}}</label> | ||
<div class="controls expiration">{{format-currency model.transaction.transaction_amount }}</div> | ||
</div> | ||
{{#if model.transaction.credit_card.last_4}} | ||
<div class="control-group"> | ||
<label class="control-label">{{i18n 'league.checkout.card_number'}}</label> | ||
<div class="controls"><img src="{{model.transaction.credit_card.image}}" /><span>{{obfuscate-credit-card model.transaction.credit_card.last_4}}</span></div> | ||
</div> | ||
<div class="control-group"> | ||
<label class="control-label">{{i18n 'league.checkout.expiration_date'}}</label> | ||
<div class="controls expiration">{{ model.transaction.credit_card.expiration }}</div> | ||
</div> | ||
{{else}} | ||
<div class="control-group"> | ||
<label class="control-label">{{i18n 'league.checkout.paypal_email'}}</label> | ||
<div class="controls"><img src="{{model.transaction.paypal.image}}" /><span>{{ model.transaction.paypal.email}}</span></div> | ||
</div> | ||
<div class="control-group"> | ||
<label class="control-label">{{i18n 'league.checkout.paypal_name'}}</label> | ||
<div class="controls expiration">{{ model.transaction.paypal.name }}</div> | ||
</div> | ||
{{/if}} | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</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