mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
86b55b0f81
refs https://github.com/TryGhost/Team/issues/1037 Adds new free tier card with option to add custom description and benefits for free tier, behind the tiers beta flag. Also: - updates formatting of tier prices - changes "Free" section to "Default" - updates price formatting of membership tiers in admin - updates currency code handling for product card - updates default paid product handling Co-authored-by: Djordje Vlaisavljevic <dzvlais@gmail.com> Co-authored-by: Peter Zimon <peter.zimon@gmail.com>
25 lines
761 B
Handlebars
25 lines
761 B
Handlebars
<label>Tiers</label>
|
|
<div class="gh-product-cards">
|
|
{{#each this.products as |product productIdx|}}
|
|
<GhProductCard
|
|
@product={{product}}
|
|
@openEditProduct={{this.openEditProduct}}
|
|
/>
|
|
{{/each}}
|
|
|
|
<div class="gh-product-cards-footer">
|
|
<button class="gh-btn gh-btn-link gh-btn-text gh-btn-icon gh-btn-add-product green" {{action "openNewProduct" product}}><span>{{svg-jar "add-stroke" class="stroke-green"}}Add tier</span></button>
|
|
</div>
|
|
</div>
|
|
|
|
{{#if this.showProductModal}}
|
|
<GhFullscreenModal
|
|
@modal="product"
|
|
@model={{hash
|
|
product=this.productModel
|
|
}}
|
|
@confirm={{this.confirmProductSave}}
|
|
@close={{this.closeProductModal}}
|
|
@modifier="edit-product action wide" />
|
|
{{/if}}
|