2015-08-18 17:15:46 -04:00
|
|
|
{{#if editing}}
|
2018-07-02 23:14:53 -04:00
|
|
|
<td class="editing-input">
|
|
|
|
<div class="label">{{i18n "admin.embedding.host"}}</div>
|
2021-01-20 09:02:27 -05:00
|
|
|
{{input value=buffered.host placeholder="example.com" enter=(action "save") class="host-name" autofocus=true}}
|
2015-08-18 17:15:46 -04:00
|
|
|
</td>
|
2018-07-02 23:14:53 -04:00
|
|
|
<td class="editing-input">
|
|
|
|
<div class="label">{{i18n "admin.embedding.class_name"}}</div>
|
2019-01-10 05:06:01 -05:00
|
|
|
{{input value=buffered.class_name placeholder="class" enter=(action "save") class="class-name"}}
|
2017-05-05 18:08:18 -04:00
|
|
|
</td>
|
2018-07-02 23:14:53 -04:00
|
|
|
<td class="editing-input">
|
2020-07-26 20:23:54 -04:00
|
|
|
<div class="label">{{i18n "admin.embedding.allowed_paths"}}</div>
|
|
|
|
{{input value=buffered.allowed_paths placeholder="/blog/.*" enter=(action "save") class="path-allowlist"}}
|
2016-08-23 14:55:52 -04:00
|
|
|
</td>
|
2018-07-02 23:14:53 -04:00
|
|
|
<td class="editing-input">
|
|
|
|
<div class="label">{{i18n "admin.embedding.category"}}</div>
|
2020-02-03 08:22:14 -05:00
|
|
|
{{category-chooser
|
|
|
|
value=categoryId
|
|
|
|
class="small"
|
2020-10-06 17:50:05 -04:00
|
|
|
onChange=(action (mut categoryId))
|
2020-02-03 08:22:14 -05:00
|
|
|
}}
|
2015-08-18 17:15:46 -04:00
|
|
|
</td>
|
2018-07-02 23:14:53 -04:00
|
|
|
<td class="editing-controls">
|
2019-01-10 05:06:01 -05:00
|
|
|
{{d-button icon="check" action=(action "save") class="btn-primary" disabled=cantSave}}
|
|
|
|
{{d-button icon="times" action=(action "cancel") class="btn-danger" disabled=host.isSaving}}
|
2015-08-18 17:15:46 -04:00
|
|
|
</td>
|
|
|
|
{{else}}
|
2018-07-02 23:14:53 -04:00
|
|
|
<td><div class="label">{{i18n "admin.embedding.host"}}</div>{{host.host}}</td>
|
|
|
|
<td><div class="label">{{i18n "admin.embedding.class_name"}}</div>{{host.class_name}}</td>
|
2020-07-26 20:23:54 -04:00
|
|
|
<td><div class="label">{{i18n "admin.embedding.allowed_paths"}}</div>{{host.allowed_paths}}</td>
|
2018-07-02 23:14:53 -04:00
|
|
|
<td><div class="label">{{i18n "admin.embedding.category"}}</div>{{category-badge host.category}}</td>
|
|
|
|
<td class="controls">
|
2019-01-22 06:02:02 -05:00
|
|
|
{{d-button icon="pencil-alt" action=(action "edit")}}
|
|
|
|
{{d-button icon="far-trash-alt" action=(action "delete") class="btn-danger"}}
|
2015-08-18 17:15:46 -04:00
|
|
|
</td>
|
2019-01-10 05:06:01 -05:00
|
|
|
{{/if}}
|