stylin, translations

This commit is contained in:
Rimian Perkins 2019-10-08 22:26:58 +11:00
parent 8d24ff455e
commit 0a6ade7ab9
8 changed files with 21 additions and 17 deletions

View File

@ -6,7 +6,7 @@ export default Ember.Controller.extend({
plan.destroy().then(() =>
this.controllerFor("adminBackupsIndex")
.get("model")
.removeObject(backup)
.removeObject(plan)
);
},

View File

@ -8,7 +8,7 @@ export default Discourse.Route.extend({
actions: {
destroyPlan(plan) {
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("yes_value"),
confirmed => {

View File

@ -1,5 +1,4 @@
<h4>{{i18n 'discourse_patrons.admin.plans.title'}}</h4>
<form class="form-horizontal">

View File

@ -1,7 +1,9 @@
{{#link-to 'adminPlugins.discourse-patrons.plans.show' 'new' class="btn btn-primary"}}
<p class="btn-right">
{{#link-to 'adminPlugins.discourse-patrons.plans.show' 'new' class="btn btn-primary"}}
{{d-icon "plus"}}
<span>{{i18n 'discourse_patrons.admin.plans.new'}}</span>
{{/link-to}}
{{/link-to}}
</p>
{{outlet}}

View File

@ -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">
<thead>
<tr>
<th>Plan Name</th>
<th>Interval</th>
<th>Product</th>
<th>Amount</th>
</tr>
</thead>
{{#each model as |subscription|}}
<tr>
</tr>
{{/each}}
</table>

View File

@ -9,4 +9,6 @@
<hr>
{{outlet}}
<div id="discourse-patrons-admin">
{{outlet}}
</div>

View File

@ -32,6 +32,12 @@
}
}
#discourse-patrons-admin {
.btn-right {
text-align: right;
}
}
.discourse-patrons-admin {
.amount {
text-align: right;