format the amount in admin
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@
|
||||
<td>{{format-date plan.createdFormatted}}</td>
|
||||
<td>{{plan.metadata.group_name}}</td>
|
||||
<td>{{plan.active}}</td>
|
||||
<td class="td-right">{{plan.amount}}</td>
|
||||
<td class="td-right">{{plan.amountDollars}}</td>
|
||||
<td class="td-right">
|
||||
{{#link-to "adminPlugins.discourse-patrons.products.show.plans.show" model.product.id plan.id class="btn no-text btn-icon"}}
|
||||
{{d-icon "far-edit"}}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<table class="table discourse-patrons-user-table">
|
||||
<thead>
|
||||
<th>{{i18n 'discourse_patrons.user.subscriptions.id'}}</th>
|
||||
<th>{{i18n 'discourse_patrons.user.plans.rate'}}</th>
|
||||
<th>{{i18n 'discourse_patrons.user.subscriptions.status'}}</th>
|
||||
<th>{{i18n 'discourse_patrons.user.subscriptions.created_at'}}</th>
|
||||
<th></th>
|
||||
@@ -12,6 +13,7 @@
|
||||
{{#each model as |subscription|}}
|
||||
<tr>
|
||||
<td>{{subscription.id}}</td>
|
||||
<td>{{subscription.plan.subscriptionRate}}</td>
|
||||
<td>{{subscription.status}}</td>
|
||||
<td>{{format-date subscription.createdFormatted}}</td>
|
||||
<td class="td-right">{{d-button disabled=subscription.canceled label="cancel" action=(route-action "cancelSubscription" subscription) icon="times"}}</td>
|
||||
|
||||
Reference in New Issue
Block a user