2022-02-19 01:36:01 +03:00
|
|
|
<div class="gh-main-content-card gh-product-card" data-test-product-card={{@product.slug}}>
|
2022-01-17 21:53:43 +03:00
|
|
|
<div class="gh-product-card-block title-block">
|
2022-02-19 01:36:01 +03:00
|
|
|
<h3 class="gh-product-card-name" data-test-name>
|
|
|
|
{{@product.name}}
|
2022-01-17 21:53:43 +03:00
|
|
|
</h3>
|
2022-02-19 01:36:01 +03:00
|
|
|
<p class="gh-product-card-description" data-test-description>
|
|
|
|
{{#if @product.description.length}}
|
|
|
|
{{@product.description}}
|
2022-02-03 20:03:23 +03:00
|
|
|
{{else}}
|
|
|
|
No description added for this tier.
|
|
|
|
{{/if}}
|
2022-01-17 21:53:43 +03:00
|
|
|
</p>
|
|
|
|
</div>
|
2022-02-19 01:36:01 +03:00
|
|
|
<div class="gh-product-card-block benefits-block" data-test-benefits>
|
|
|
|
<h4>Benefits <span class="counter">({{or @product.benefits.length "0"}})</span></h4>
|
|
|
|
{{#if @product.benefits.length}}
|
2022-01-17 21:53:43 +03:00
|
|
|
<ul class="benefits">
|
2022-02-19 01:36:01 +03:00
|
|
|
{{#each @product.benefits as |benefit|}}
|
2022-01-17 21:53:43 +03:00
|
|
|
<li>{{svg-jar "check"}} {{benefit.name}} </li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
{{else}}
|
|
|
|
<p class="gh-product-card-description">No benefits added for this tier.</p>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2022-02-19 01:36:01 +03:00
|
|
|
{{#if (eq @product.type "free" )}}
|
2022-01-17 21:53:43 +03:00
|
|
|
<div class="gh-product-card-block">
|
|
|
|
<div class="gh-product-price-container">
|
2022-02-19 01:36:01 +03:00
|
|
|
<div class="gh-product-card-price" data-test-free-price>
|
2022-01-17 21:53:43 +03:00
|
|
|
<div class="flex items-start">
|
2022-01-19 10:34:08 +03:00
|
|
|
<span class="currency">{{currency-symbol this.productCurrency}}</span>
|
2022-01-17 21:53:43 +03:00
|
|
|
<span class="amount">0</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-02-19 01:36:01 +03:00
|
|
|
{{#if (eq @product.type "paid" )}}
|
2022-01-17 21:53:43 +03:00
|
|
|
<div class="gh-product-card-block">
|
|
|
|
<div class="gh-product-price-container">
|
2022-02-19 01:36:01 +03:00
|
|
|
<div class="gh-product-card-price" data-test-monthly-price>
|
2022-01-17 21:53:43 +03:00
|
|
|
<div class="flex items-start">
|
2022-01-19 10:34:08 +03:00
|
|
|
<span class="currency">{{currency-symbol this.productCurrency}}</span>
|
2022-02-19 01:36:01 +03:00
|
|
|
<span class="amount">{{gh-price-amount @product.monthlyPrice.amount}}</span>
|
2022-01-17 21:53:43 +03:00
|
|
|
</div>
|
|
|
|
<div class="period">Monthly</div>
|
|
|
|
</div>
|
2022-02-19 01:36:01 +03:00
|
|
|
<div class="gh-product-card-price" data-test-yearly-price>
|
2022-01-17 21:53:43 +03:00
|
|
|
<div class="flex items-start">
|
2022-01-19 10:34:08 +03:00
|
|
|
<span class="currency">{{currency-symbol this.productCurrency}}</span>
|
2022-02-19 01:36:01 +03:00
|
|
|
<span class="amount">{{gh-price-amount @product.yearlyPrice.amount}}</span>
|
2022-01-17 21:53:43 +03:00
|
|
|
</div>
|
|
|
|
<div class="period">Yearly</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-02-19 01:36:01 +03:00
|
|
|
{{#if (eq @product.type "paid" )}}
|
2022-02-03 20:03:23 +03:00
|
|
|
<div class="gh-product-card-button-container">
|
2022-01-31 21:26:12 +03:00
|
|
|
<span class="dropdown">
|
|
|
|
<GhDropdownButton
|
2022-02-19 01:36:01 +03:00
|
|
|
@dropdownName="tiers-actions-menu-{{@product.name}}"
|
2022-02-03 20:03:23 +03:00
|
|
|
@classNames="gh-btn gh-btn-action-icon gh-btn-icon gh-btn-outline gh-product-card-actions-button icon-only"
|
2022-01-31 21:26:12 +03:00
|
|
|
@title="Tiers Actions"
|
|
|
|
data-test-button="tiers-actions"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
{{svg-jar "dotdotdot"}}
|
|
|
|
<span class="hidden">Actions</span>
|
|
|
|
</span>
|
|
|
|
</GhDropdownButton>
|
|
|
|
<GhDropdown
|
2022-02-19 01:36:01 +03:00
|
|
|
@name="tiers-actions-menu-{{@product.name}}"
|
2022-01-31 21:26:12 +03:00
|
|
|
@tagName="ul"
|
|
|
|
@classNames="gh-tier-actions-menu dropdown-menu dropdown-triangle-top-right"
|
|
|
|
>
|
|
|
|
<li>
|
2022-02-19 01:36:01 +03:00
|
|
|
<button class="mr2" type="button" {{on "click" (fn this.openEditProduct @product)}}>
|
2022-01-31 21:26:12 +03:00
|
|
|
<span>Edit</span>
|
|
|
|
</button>
|
|
|
|
</li>
|
2022-02-02 14:04:51 +03:00
|
|
|
{{#if this.showArchiveOption}}
|
2022-02-01 14:56:18 +03:00
|
|
|
<li>
|
2022-02-02 13:51:21 +03:00
|
|
|
<Settings::Members::ArchiveTier
|
2022-02-19 01:36:01 +03:00
|
|
|
@product={{@product}}
|
2022-02-02 13:51:21 +03:00
|
|
|
@onUnarchive={{@onUnarchive}}
|
|
|
|
/>
|
2022-02-01 14:56:18 +03:00
|
|
|
</li>
|
|
|
|
{{/if}}
|
2022-01-31 21:26:12 +03:00
|
|
|
</GhDropdown>
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-02-03 20:03:23 +03:00
|
|
|
{{else}}
|
2022-02-03 20:07:34 +03:00
|
|
|
<div class="gh-product-card-button-container">
|
2022-02-19 01:36:01 +03:00
|
|
|
<button type="button" {{on "click" (fn this.openEditProduct @product)}} class="gh-btn gh-btn-action-icon gh-btn-icon gh-btn-outline gh-product-card-edit-button icon-only" data-test-button="edit-product">
|
2022-02-03 20:03:23 +03:00
|
|
|
<span>
|
|
|
|
{{svg-jar "pen"}}
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-01-17 21:53:43 +03:00
|
|
|
</div>
|