{{#if editing}}
{{i18n "admin.embedding.host"}}
{{input value=buffered.host placeholder="example.com" enter=(action "save") class="host-name"}}
{{i18n "admin.embedding.class_name"}}
{{input value=buffered.class_name placeholder="class" enter=(action "save") class="class-name"}}
{{i18n "admin.embedding.allowed_paths"}}
{{input value=buffered.allowed_paths placeholder="/blog/.*" enter=(action "save") class="path-allowlist"}}
{{i18n "admin.embedding.category"}}
{{category-chooser value=categoryId class="small" onChange=(mut categoryId) }} {{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}} {{else}}
{{i18n "admin.embedding.host"}}
{{host.host}}
{{i18n "admin.embedding.class_name"}}
{{host.class_name}}
{{i18n "admin.embedding.allowed_paths"}}
{{host.allowed_paths}}
{{i18n "admin.embedding.category"}}
{{category-badge host.category}} {{d-button icon="pencil-alt" action=(action "edit")}} {{d-button icon="far-trash-alt" action=(action "delete") class="btn-danger"}} {{/if}}