2021-06-04 15:27:33 +03:00
|
|
|
<label>Products</label>
|
2021-06-04 12:35:28 +03:00
|
|
|
<div class="gh-product-cards">
|
2021-06-04 14:02:16 +03:00
|
|
|
{{#each this.products as |product productIdx|}}
|
2021-06-04 11:59:42 +03:00
|
|
|
<div class="gh-product-card">
|
|
|
|
<button class="gh-product-card-editbutton gh-btn gh-btn-text gh-btn-link green" {{action "openEditProduct" product}}>
|
|
|
|
<span>Edit</span>
|
|
|
|
</button>
|
|
|
|
<div class="gh-product-card-block">
|
|
|
|
<h3 class="gh-product-card-name">
|
|
|
|
{{product.name}}
|
2021-06-04 10:37:47 +03:00
|
|
|
</h3>
|
|
|
|
<p class="gh-product-card-description">
|
2021-06-04 11:59:42 +03:00
|
|
|
{{product.description}}
|
2021-06-04 10:37:47 +03:00
|
|
|
</p>
|
2021-06-04 16:36:18 +03:00
|
|
|
{{#if (and (eq productIdx 0) (not (eq products.length 1)))}}
|
|
|
|
<span class="gh-badge gh-badge-green">Available in Portal</span>
|
2021-06-04 14:02:16 +03:00
|
|
|
{{/if}}
|
2021-06-04 10:37:47 +03:00
|
|
|
</div>
|
2021-06-17 12:11:17 +03:00
|
|
|
<div class="gh-product-card-block">
|
|
|
|
<h4>Benefits <span class="counter">(3)</span></h4>
|
|
|
|
<ul class="benefits">
|
2021-06-21 11:36:17 +03:00
|
|
|
{{#each product.benefits as |benefit|}}
|
|
|
|
<li>{{svg-jar "check"}} {{benefit.label}} </li>
|
|
|
|
{{/each}}
|
2021-06-17 12:11:17 +03:00
|
|
|
<li>{{svg-jar "check"}} Access to all J&A Watch J&A episodes, past and future!</li>
|
|
|
|
<li>{{svg-jar "check"}} An exclusive AD-FREE extra video episode of J&A AMA every other week!</li>
|
|
|
|
<li>{{svg-jar "check"}} Includes Discord benefits</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2021-06-04 11:59:42 +03:00
|
|
|
<div class="gh-product-card-block">
|
2021-06-14 15:05:49 +03:00
|
|
|
<div class="gh-product-price-container">
|
|
|
|
<div class="gh-product-card-price">
|
|
|
|
<div class="flex items-baseline">
|
|
|
|
<span class="amount">{{gh-price-amount product.monthlyPrice.amount}}</span>
|
|
|
|
<span class="currency">{{product.monthlyPrice.currency}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="period">Monthly</div>
|
|
|
|
</div>
|
|
|
|
<div class="gh-product-card-price">
|
|
|
|
<div class="flex items-baseline">
|
|
|
|
<span class="amount">{{gh-price-amount product.yearlyPrice.amount}}</span>
|
|
|
|
<span class="currency">{{product.monthlyPrice.currency}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="period">Yearly</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-04 10:37:47 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
2021-06-04 12:35:28 +03:00
|
|
|
|
|
|
|
<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 product</span></button>
|
|
|
|
<span>– Advanced (<a href="javascript:">learn more</a>)</span>
|
|
|
|
</div>
|
2021-06-04 10:37:47 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{#if this.showProductModal}}
|
|
|
|
<GhFullscreenModal
|
|
|
|
@modal="product"
|
|
|
|
@model={{hash
|
|
|
|
product=this.productModel
|
|
|
|
}}
|
|
|
|
@confirm={{this.confirmProductSave}}
|
|
|
|
@close={{this.closeProductModal}}
|
2021-06-18 11:51:06 +03:00
|
|
|
@modifier="edit-product action wide" />
|
2021-06-21 11:36:17 +03:00
|
|
|
{{/if}}
|