Ghost/ghost/admin/app/components/gh-psm-template-select.hbs

19 lines
789 B
Handlebars
Raw Normal View History

{{#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}}