Ghost/ghost/admin/app/components/gh-psm-template-select.hbs
2022-08-31 15:02:12 +01:00

19 lines
789 B
Handlebars

{{#if this.customTemplates}}
<div class="form-group for-select" data-test-custom-template-form>
<label for="author-list">Template</label>
<span class="gh-select {{if this.matchedSlugTemplate "disabled"}}">
<OneWaySelect @value={{this.selectedTemplate}}
@options={{this.customTemplates}}
@optionValuePath="filename"
@optionLabelPath="name"
@update={{action "selectTemplate"}}
@disabled={{this.matchedSlugTemplate}}
data-test-select="custom-template" />
{{svg-jar "arrow-down-small"}}
</span>
{{#if this.matchedSlugTemplate}}
<p>Post URL matches {{this.matchedSlugTemplate.filename}}</p>
{{/if}}
</div>
{{/if}}