mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Refined benefits
This commit is contained in:
parent
c1d3d8e4f2
commit
0acf9b1d9b
3 changed files with 16 additions and 3 deletions
|
@ -16,13 +16,17 @@
|
||||||
<span class="gh-badge gh-badge-green">Available in Portal</span>
|
<span class="gh-badge gh-badge-green">Available in Portal</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="gh-product-card-block">
|
<div class="gh-product-card-block benefits-block">
|
||||||
<h4>Benefits <span class="counter">({{product.benefits.length}})</span></h4>
|
<h4>Benefits <span class="counter">({{if product.benefits.length product.benefit.length "0"}})</span></h4>
|
||||||
|
{{#if product.benefits.length}}
|
||||||
<ul class="benefits">
|
<ul class="benefits">
|
||||||
{{#each product.benefits as |benefit|}}
|
{{#each product.benefits as |benefit|}}
|
||||||
<li>{{svg-jar "check"}} {{benefit.name}} </li>
|
<li>{{svg-jar "check"}} {{benefit.name}} </li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{else}}
|
||||||
|
<p class="gh-product-card-description">No benefits added for this product.</p>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="gh-product-card-block">
|
<div class="gh-product-card-block">
|
||||||
<div class="gh-product-price-container">
|
<div class="gh-product-price-container">
|
||||||
|
|
|
@ -70,6 +70,10 @@
|
||||||
color: var(--midgrey);
|
color: var(--midgrey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gh-product-card-block.benefits-block .gh-product-card-description {
|
||||||
|
margin-top: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
.gh-product-card-block ul.benefits {
|
.gh-product-card-block ul.benefits {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 10px 0 0;
|
margin: 10px 0 0;
|
||||||
|
@ -417,6 +421,11 @@
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gh-product-benefits .gh-blognav-label .response {
|
||||||
|
font-size: 1.3rem;
|
||||||
|
margin: 2px 0 6px;
|
||||||
|
}
|
||||||
|
|
||||||
.gh-product-benefits .gh-blognav-delete {
|
.gh-product-benefits .gh-blognav-delete {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default BaseValidator.create({
|
||||||
let hasValidated = model.get('hasValidated');
|
let hasValidated = model.get('hasValidated');
|
||||||
|
|
||||||
if (isBlank(name)) {
|
if (isBlank(name)) {
|
||||||
model.get('errors').add('name', 'You must specify a name');
|
model.get('errors').add('name', 'Please enter the benefit');
|
||||||
this.invalidate();
|
this.invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue