{{#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.path_whitelist"}}
{{input value=buffered.path_whitelist placeholder="/blog/.*" enter=(action "save") class="path-whitelist"}}
{{i18n "admin.embedding.category"}}
{{category-chooser value=categoryId class="small" onChange=(action (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.path_whitelist"}}
{{host.path_whitelist}}
{{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}}