0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Refined benefits

This commit is contained in:
Peter Zimon 2021-06-28 12:39:31 +02:00
parent c1d3d8e4f2
commit 0acf9b1d9b
3 changed files with 16 additions and 3 deletions

View file

@ -16,13 +16,17 @@
<span class="gh-badge gh-badge-green">Available in Portal</span>
{{/if}}
</div>
<div class="gh-product-card-block">
<h4>Benefits <span class="counter">({{product.benefits.length}})</span></h4>
<div class="gh-product-card-block benefits-block">
<h4>Benefits <span class="counter">({{if product.benefits.length product.benefit.length "0"}})</span></h4>
{{#if product.benefits.length}}
<ul class="benefits">
{{#each product.benefits as |benefit|}}
<li>{{svg-jar "check"}} {{benefit.name}} </li>
{{/each}}
</ul>
{{else}}
<p class="gh-product-card-description">No benefits added for this product.</p>
{{/if}}
</div>
<div class="gh-product-card-block">
<div class="gh-product-price-container">

View file

@ -70,6 +70,10 @@
color: var(--midgrey);
}
.gh-product-card-block.benefits-block .gh-product-card-description {
margin-top: 9px;
}
.gh-product-card-block ul.benefits {
list-style: none;
margin: 10px 0 0;
@ -417,6 +421,11 @@
margin-right: 0;
}
.gh-product-benefits .gh-blognav-label .response {
font-size: 1.3rem;
margin: 2px 0 6px;
}
.gh-product-benefits .gh-blognav-delete {
position: absolute;
top: 0;

View file

@ -9,7 +9,7 @@ export default BaseValidator.create({
let hasValidated = model.get('hasValidated');
if (isBlank(name)) {
model.get('errors').add('name', 'You must specify a name');
model.get('errors').add('name', 'Please enter the benefit');
this.invalidate();
}