mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 16:14:25 +03:00
a2fc31aa0a
Refs https://www.notion.so/ghost/Unify-icons-across-Admin-7e3d124d5db34c63beccca029af595e7 - Reduced duplicate plus icons - Replaced fill trash, info and pen icons by stroke icons - Removed fill styles from default button classes - Removed launch-wizard css
43 lines
1.6 KiB
Handlebars
43 lines
1.6 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.isFreeTier "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="benefit-label" />
|
|
|
|
<GhErrorMessage
|
|
@errors={{this.benefitItem.errors}}
|
|
@property="name"
|
|
data-test-error="benefit-label" />
|
|
</GhValidationStatusContainer>
|
|
</div>
|
|
|
|
{{#if this.benefitItem.isNew}}
|
|
<button type="button" class="gh-blognav-add" {{action "addItem" this.benefitItem}} data-test-button="add-benefit">
|
|
{{svg-jar "plus"}}<span class="sr-only">Add</span>
|
|
</button>
|
|
{{else}}
|
|
<button type="button" class="gh-blognav-delete" {{action "deleteItem" this.benefitItem}} data-test-button="delete-benefit">
|
|
{{svg-jar "trash"}}<span class="sr-only">Delete</span>
|
|
</button>
|
|
{{/if}}
|