Ghost/ghost/admin/app/templates/components/gh-psm-template-select.hbs
2018-03-19 09:57:31 +00:00

22 lines
881 B
Handlebars

{{#if customTemplates}}
<div class="form-group for-select" data-test-custom-template-form>
<label for="author-list">Template</label>
<span class="gh-input-icon gh-icon-user">
{{svg-jar "file-text-document"}}
<span class="gh-select {{if matchedSlugTemplate "disabled"}}">
{{one-way-select selectedTemplate
options=customTemplates
optionValuePath="filename"
optionLabelPath="name"
update=(action "selectTemplate")
disabled=matchedSlugTemplate
data-test-select="custom-template"}}
{{svg-jar "arrow-down-small"}}
</span>
</span>
{{#if matchedSlugTemplate}}
<p>Post URL matches {{matchedSlugTemplate.filename}}</p>
{{/if}}
</div>
{{/if}}