Plans, subscriptions
* Plans controller * Subscription controller * Clean admin controller * Ember Plans route * Index page * New Plans * Translations
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export default Discourse.Route.extend({});
|
||||
@@ -1,15 +1,16 @@
|
||||
<h3>Payments</h3>
|
||||
|
||||
<h3>{{i18n 'discourse_patrons.admin.dashboard.title'}}</h3>
|
||||
|
||||
{{#load-more selector=".discourse-patrons-admin tr" action=(action "loadMore")}}
|
||||
{{#if model}}
|
||||
<table class="table discourse-patrons-admin">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{i18n 'discourse_patrons.admin.payment_history.table.head.user'}}</th>
|
||||
<th>{{i18n 'discourse_patrons.admin.payment_history.table.head.payment_intent'}}</th>
|
||||
<th>{{i18n 'discourse_patrons.admin.payment_history.table.head.receipt_email'}}</th>
|
||||
<th>{{i18n 'discourse_patrons.admin.dashboard.table.head.user'}}</th>
|
||||
<th>{{i18n 'discourse_patrons.admin.dashboard.table.head.payment_intent'}}</th>
|
||||
<th>{{i18n 'discourse_patrons.admin.dashboard.table.head.receipt_email'}}</th>
|
||||
<th onclick={{action "orderPayments" "created_at"}} class="sortable">{{i18n 'created'}}</th>
|
||||
<th class="amount" onclick={{action "orderPayments" "amount"}} class="sortable amount">{{i18n 'discourse_patrons.admin.payment_history.table.head.amount'}}</th>
|
||||
<th class="amount" onclick={{action "orderPayments" "amount"}} class="sortable amount">{{i18n 'discourse_patrons.admin.dashboard.table.head.amount'}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{{#each model as |payment|}}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
|
||||
<h3>Plans.</h3>
|
||||
<h3>{{i18n 'discourse_patrons.admin.plans.title'}}</h3>
|
||||
|
||||
{{#link-to 'adminPlugins.discourse-patrons.plans.show' 'new' class="btn btn-primary"}}
|
||||
New
|
||||
{{d-icon "plus"}}
|
||||
<span>{{i18n 'discourse_patrons.admin.plans.new'}}</span>
|
||||
{{/link-to}}
|
||||
|
||||
{{outlet}}
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
<th>Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{{#each model as |payment|}}
|
||||
{{#each model as |plan|}}
|
||||
<tr>
|
||||
|
||||
</tr>
|
||||
|
||||
@@ -4,17 +4,17 @@
|
||||
<ul class="nav nav-pills">
|
||||
<li>
|
||||
{{#link-to 'adminPlugins.discourse-patrons'}}
|
||||
Payments
|
||||
{{i18n 'discourse_patrons.admin.dashboard.title'}}
|
||||
{{/link-to}}
|
||||
</li>
|
||||
<li>
|
||||
{{#link-to 'adminPlugins.discourse-patrons.plans'}}
|
||||
Plans
|
||||
{{i18n 'discourse_patrons.admin.plans.title'}}
|
||||
{{/link-to}}
|
||||
</li>
|
||||
<li>
|
||||
{{#link-to 'adminPlugins.discourse-patrons.subscriptions'}}
|
||||
Subscriptions
|
||||
{{i18n 'discourse_patrons.admin.subscriptions.title'}}
|
||||
{{/link-to}}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user