2017-10-10 15:26:19 +03:00
|
|
|
{{#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">
|
2018-03-19 12:57:31 +03:00
|
|
|
{{svg-jar "file-text-document"}}
|
2017-10-10 15:26:19 +03:00
|
|
|
<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"}}
|
2018-03-19 12:57:31 +03:00
|
|
|
{{svg-jar "arrow-down-small"}}
|
2017-10-10 15:26:19 +03:00
|
|
|
</span>
|
|
|
|
</span>
|
2017-10-13 14:25:52 +03:00
|
|
|
{{#if matchedSlugTemplate}}
|
|
|
|
<p>Post URL matches {{matchedSlugTemplate.filename}}</p>
|
|
|
|
{{/if}}
|
2017-10-10 15:26:19 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|