mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
e142812a68
refs https://github.com/TryGhost/Team/issues/1037 - added default currency to free tier card - updated benefit placeholder for free tier - updated description placeholder for free tier
40 lines
1.5 KiB
Handlebars
40 lines
1.5 KiB
Handlebars
{{#unless this.benefitItem.isNew}}
|
|
<span class="gh-blognav-grab">
|
|
{{svg-jar "grab"}}
|
|
<span class="sr-only">Reorder</span>
|
|
</span>
|
|
{{/unless}}
|
|
|
|
<div class="gh-blognav-line {{unless this.name "placeholder"}}">
|
|
{{svg-jar "check-2"}}
|
|
<GhValidationStatusContainer
|
|
@tagName="span"
|
|
@class="gh-blognav-label"
|
|
@errors={{this.benefitItem.errors}}
|
|
@property="name"
|
|
@hasValidated={{this.benefitItem.hasValidated}}
|
|
>
|
|
<GhTrimFocusInput
|
|
@shouldFocus={{this.benefitItem.last}}
|
|
@placeholder={{if this.isFreeProduct "Access to all public posts" "Expert analysis"}}
|
|
@value={{readonly this.name}}
|
|
@input={{action "updateLabel" value="target.value"}}
|
|
@keyPress={{action "clearLabelErrors"}}
|
|
@stopEnterKeyDownPropagation={{true}}
|
|
@focus-out={{action "updateLabel" this.name}} data-test-input="name" />
|
|
<GhErrorMessage
|
|
@errors={{this.benefitItem.errors}}
|
|
@property="name" data-test-error="name" />
|
|
</GhValidationStatusContainer>
|
|
</div>
|
|
|
|
{{#if this.benefitItem.isNew}}
|
|
<button type="button" class="gh-blognav-add" {{action "addItem" this.benefitItem}}>
|
|
{{svg-jar "add"}}<span class="sr-only">Add</span>
|
|
</button>
|
|
{{else}}
|
|
<button type="button" class="gh-blognav-delete" {{action "deleteItem" this.benefitItem}}>
|
|
{{svg-jar "trash"}}<span class="sr-only">Delete</span>
|
|
</button>
|
|
{{/if}}
|