2019-12-13 17:20:29 +03:00
|
|
|
{{#if this.customTemplates}}
|
2017-10-10 15:26:19 +03:00
|
|
|
<div class="form-group for-select" data-test-custom-template-form>
|
|
|
|
<label for="author-list">Template</label>
|
2022-08-31 17:02:06 +03:00
|
|
|
<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"}}
|
2017-10-10 15:26:19 +03:00
|
|
|
</span>
|
2019-12-13 17:20:29 +03:00
|
|
|
{{#if this.matchedSlugTemplate}}
|
|
|
|
<p>Post URL matches {{this.matchedSlugTemplate.filename}}</p>
|
2017-10-13 14:25:52 +03:00
|
|
|
{{/if}}
|
2017-10-10 15:26:19 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|