DEV: Use angle bracket syntax (#167)
This commit is contained in:
parent
bf41ea9aa7
commit
e365ced531
|
@ -53,9 +53,9 @@
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
{{#if creating}}
|
{{#if creating}}
|
||||||
{{create-coupon-form
|
<CreateCouponForm
|
||||||
cancel=(action "closeCreateForm")
|
@cancel={{action "closeCreateForm"}}
|
||||||
create=(action "createNewCoupon")
|
@create={{action "createNewCoupon"}}
|
||||||
}}
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
|
@ -4,10 +4,10 @@
|
||||||
|
|
||||||
<div class="subscribe-buttons">
|
<div class="subscribe-buttons">
|
||||||
{{#each orderedPlans as |plan|}}
|
{{#each orderedPlans as |plan|}}
|
||||||
{{payment-plan
|
<PaymentPlan
|
||||||
plan=plan
|
@plan={{plan}}
|
||||||
selectedPlan=selectedPlan
|
@selectedPlan={{selectedPlan}}
|
||||||
clickPlan=(action "clickPlan")
|
@clickPlan={{action "clickPlan"}}
|
||||||
}}
|
/>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
|
@ -2,6 +2,6 @@
|
||||||
<p>{{i18n "discourse_subscriptions.subscribe.no_products"}}</p>
|
<p>{{i18n "discourse_subscriptions.subscribe.no_products"}}</p>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#each products as |product|}}
|
{{#each products as |product|}}
|
||||||
{{product-item product=product isLoggedIn=isLoggedIn}}
|
<ProductItem @product={{product}} @isLoggedIn={{isLoggedIn}} />
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/if}}
|
{{/if}}
|
|
@ -1 +1 @@
|
||||||
{{campaign-banner connectorName="above-main-container"}}
|
<CampaignBanner @connectorName="above-main-container" />
|
|
@ -1 +1 @@
|
||||||
{{campaign-banner connectorName="after-topic-footer-buttons"}}
|
<CampaignBanner @connectorName="after-topic-footer-buttons" />
|
|
@ -1 +1 @@
|
||||||
{{campaign-banner connectorName="before-topic-list"}}
|
<CampaignBanner @connectorName="before-topic-list" />
|
|
@ -1,5 +1,5 @@
|
||||||
{{#unless isLoggedIn}}
|
{{#unless isLoggedIn}}
|
||||||
{{login-required}}
|
<LoginRequired />
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
{{product-list products=model isLoggedIn=isLoggedIn}}
|
<ProductList @products={{model}} @isLoggedIn={{isLoggedIn}} />
|
|
@ -19,16 +19,16 @@
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
{{payment-options plans=model.plans selectedPlan=selectedPlan}}
|
<PaymentOptions @plans={{model.plans}} @selectedPlan={{selectedPlan}} />
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
{{subscribe-card cardElement=cardElement}}
|
<SubscribeCard @cardElement={{cardElement}} />
|
||||||
|
|
||||||
{{#if loading}}
|
{{#if loading}}
|
||||||
{{loading-spinner}}
|
{{loading-spinner}}
|
||||||
{{else if isAnonymous}}
|
{{else if isAnonymous}}
|
||||||
{{login-required}}
|
<LoginRequired />
|
||||||
{{else}}
|
{{else}}
|
||||||
<Input
|
<Input
|
||||||
@type="text"
|
@type="text"
|
||||||
|
@ -40,10 +40,10 @@
|
||||||
class="subscribe-name"
|
class="subscribe-name"
|
||||||
/>
|
/>
|
||||||
<div class="address-fields">
|
<div class="address-fields">
|
||||||
{{subscribe-country-select
|
<SubscribeCountrySelect
|
||||||
value=cardholderAddress.country
|
@value={{cardholderAddress.country}}
|
||||||
onChange=(action "changeCountry")
|
@onChange={{action "changeCountry"}}
|
||||||
}}
|
/>
|
||||||
<Input
|
<Input
|
||||||
@type="text"
|
@type="text"
|
||||||
name="cardholder_postal_code"
|
name="cardholder_postal_code"
|
||||||
|
@ -74,15 +74,15 @@
|
||||||
class="subscribe-address-city"
|
class="subscribe-address-city"
|
||||||
/>
|
/>
|
||||||
{{#if isCountryUS}}
|
{{#if isCountryUS}}
|
||||||
{{subscribe-us-state-select
|
<SubscribeUsStateSelect
|
||||||
value=cardholderAddress.state
|
@value={{cardholderAddress.state}}
|
||||||
onChange=(action "changeState")
|
@onChange={{action "changeState"}}
|
||||||
}}
|
/>
|
||||||
{{else if isCountryCA}}
|
{{else if isCountryCA}}
|
||||||
{{subscribe-ca-province-select
|
<SubscribeCaProvinceSelect
|
||||||
value=cardholderAddress.state
|
@value={{cardholderAddress.state}}
|
||||||
onChange=(action "changeState")
|
@onChange={{action "changeState"}}
|
||||||
}}
|
/>
|
||||||
{{else}}
|
{{else}}
|
||||||
<Input
|
<Input
|
||||||
@type="text"
|
@type="text"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
{{subscribe-card cardElement=cardElement class="input-xxlarge"}}
|
<SubscribeCard @cardElement={{cardElement}} class="input-xxlarge" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<SaveControls
|
<SaveControls
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
"author": "Discourse",
|
"author": "Discourse",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint-config-discourse": "^3.1.0"
|
"eslint-config-discourse": "^3.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1145,7 +1145,7 @@ escape-string-regexp@^4.0.0:
|
||||||
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
|
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
|
||||||
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
|
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
|
||||||
|
|
||||||
eslint-config-discourse@^3.1.0:
|
eslint-config-discourse@^3.4.0:
|
||||||
version "3.4.0"
|
version "3.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/eslint-config-discourse/-/eslint-config-discourse-3.4.0.tgz#636a1824bca48c90aeac5bee2f8d7b993609191f"
|
resolved "https://registry.yarnpkg.com/eslint-config-discourse/-/eslint-config-discourse-3.4.0.tgz#636a1824bca48c90aeac5bee2f8d7b993609191f"
|
||||||
integrity sha512-9jwu8GQPDOxAO0ByV6RbInu5r39HrFvbAHQRJ8YoGg2fuvHcX+p7fYcxEWj64LhmF4qD55cAGhN0Gmj10RVjoQ==
|
integrity sha512-9jwu8GQPDOxAO0ByV6RbInu5r39HrFvbAHQRJ8YoGg2fuvHcX+p7fYcxEWj64LhmF4qD55cAGhN0Gmj10RVjoQ==
|
||||||
|
|
Loading…
Reference in New Issue