mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-07-08 15:22:46 +00:00
stylin, translations
This commit is contained in:
parent
8d24ff455e
commit
0a6ade7ab9
@ -6,7 +6,7 @@ export default Ember.Controller.extend({
|
|||||||
plan.destroy().then(() =>
|
plan.destroy().then(() =>
|
||||||
this.controllerFor("adminBackupsIndex")
|
this.controllerFor("adminBackupsIndex")
|
||||||
.get("model")
|
.get("model")
|
||||||
.removeObject(backup)
|
.removeObject(plan)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ export default Discourse.Route.extend({
|
|||||||
actions: {
|
actions: {
|
||||||
destroyPlan(plan) {
|
destroyPlan(plan) {
|
||||||
bootbox.confirm(
|
bootbox.confirm(
|
||||||
I18n.t("discourse-patrons.plans.operations.destroy.confirm"),
|
I18n.t("discourse_patrons.admin.plans.operations.destroy.confirm"),
|
||||||
I18n.t("no_value"),
|
I18n.t("no_value"),
|
||||||
I18n.t("yes_value"),
|
I18n.t("yes_value"),
|
||||||
confirmed => {
|
confirmed => {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<h4>{{i18n 'discourse_patrons.admin.plans.title'}}</h4>
|
<h4>{{i18n 'discourse_patrons.admin.plans.title'}}</h4>
|
||||||
|
|
||||||
<form class="form-horizontal">
|
<form class="form-horizontal">
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
|
|
||||||
{{#link-to 'adminPlugins.discourse-patrons.plans.show' 'new' class="btn btn-primary"}}
|
<p class="btn-right">
|
||||||
{{d-icon "plus"}}
|
{{#link-to 'adminPlugins.discourse-patrons.plans.show' 'new' class="btn btn-primary"}}
|
||||||
<span>{{i18n 'discourse_patrons.admin.plans.new'}}</span>
|
{{d-icon "plus"}}
|
||||||
{{/link-to}}
|
<span>{{i18n 'discourse_patrons.admin.plans.new'}}</span>
|
||||||
|
{{/link-to}}
|
||||||
|
</p>
|
||||||
|
|
||||||
{{outlet}}
|
{{outlet}}
|
||||||
|
@ -1,18 +1,13 @@
|
|||||||
|
|
||||||
<h3>{{i18n 'discourse_patrons.admin.plans'}}</h3>
|
<h3>{{i18n 'discourse_patrons.admin.subscriptions.title'}}</h3>
|
||||||
|
|
||||||
<table class="table discourse-patrons-admin">
|
<table class="table discourse-patrons-admin">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Plan Name</th>
|
|
||||||
<th>Interval</th>
|
|
||||||
<th>Product</th>
|
|
||||||
<th>Amount</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{{#each model as |subscription|}}
|
{{#each model as |subscription|}}
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</table>
|
</table>
|
||||||
|
@ -9,4 +9,6 @@
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
{{outlet}}
|
<div id="discourse-patrons-admin">
|
||||||
|
{{outlet}}
|
||||||
|
</div>
|
||||||
|
@ -32,6 +32,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#discourse-patrons-admin {
|
||||||
|
.btn-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.discourse-patrons-admin {
|
.discourse-patrons-admin {
|
||||||
.amount {
|
.amount {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
@ -60,8 +60,8 @@ en:
|
|||||||
nickname: Nickname
|
nickname: Nickname
|
||||||
interval: Interval
|
interval: Interval
|
||||||
amount: Amount
|
amount: Amount
|
||||||
operations:
|
operations:
|
||||||
destroy:
|
destroy:
|
||||||
confirm: Are you sure you want to destroy this plan?
|
confirm: Are you sure you want to destroy this plan?
|
||||||
subscriptions:
|
subscriptions:
|
||||||
title: Subscriptions
|
title: Subscriptions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user