From c845f3be4bff95d21bd4c98715c58adc7a28be28 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Wed, 16 Oct 2019 21:18:29 +1100 Subject: [PATCH] form fields --- .../plugins-discourse-patrons-plans-show.hbs | 10 +++++----- config/locales/client.en.yml | 20 +++++++++---------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/assets/javascripts/discourse/templates/admin/plugins-discourse-patrons-plans-show.hbs b/assets/javascripts/discourse/templates/admin/plugins-discourse-patrons-plans-show.hbs index 7c2905f..afe355a 100644 --- a/assets/javascripts/discourse/templates/admin/plugins-discourse-patrons-plans-show.hbs +++ b/assets/javascripts/discourse/templates/admin/plugins-discourse-patrons-plans-show.hbs @@ -3,23 +3,23 @@

- + {{input type="text" name="name" value=model.plan.name}}

- + {{input type="text" name="name" value=model.plan.amount}}

- + {{combo-box valueAttribute="value" content=model.products value=defaultProduct}}

- + {{combo-box valueAttribute="value" content=model.plan.intervals value=model.plan.interval}}

- {{d-button label="discourse_patrons.admin.plans.show.create" action="createPlan" icon="plus"}} + {{d-button label="discourse_patrons.admin.plans.operations.create" action="createPlan" icon="plus"}}
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 05cab60..e0c8cc1 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -74,19 +74,17 @@ en: active: Active plans: title: Plans - new: New Plan - show: - create: Create - name: Name - amount: Amount - interval: Interval - plan: - plan_id: Plan ID - nickname: Nickname - interval: Interval - amount: Amount operations: + create: Create New Plan + new: New Plan destroy: confirm: Are you sure you want to destroy this plan? + plan: + plan_id: Plan ID + name: Plan Name + nickname: Nickname + product: Product + interval: Interval + amount: Amount subscriptions: title: Subscriptions