mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:53:44 +08:00
31 lines
1.5 KiB
Handlebars
31 lines
1.5 KiB
Handlebars
{{#if editing}}
|
|
<td class="editing-input">
|
|
<div class="label">{{i18n "admin.embedding.host"}}</div>
|
|
{{input value=buffered.host placeholder="example.com" enter="save" class="host-name"}}
|
|
</td>
|
|
<td class="editing-input">
|
|
<div class="label">{{i18n "admin.embedding.class_name"}}</div>
|
|
{{input value=buffered.class_name placeholder="class" enter="save" class="class-name"}}
|
|
</td>
|
|
<td class="editing-input">
|
|
<div class="label">{{i18n "admin.embedding.path_whitelist"}}</div>
|
|
{{input value=buffered.path_whitelist placeholder="/blog/.*" enter="save" class="path-whitelist"}}
|
|
</td>
|
|
<td class="editing-input">
|
|
<div class="label">{{i18n "admin.embedding.category"}}</div>
|
|
{{category-chooser value=categoryId class="small"}}
|
|
</td>
|
|
<td class="editing-controls">
|
|
{{d-button icon="check" action="save" class="btn-primary" disabled=cantSave}}
|
|
{{d-button icon="times" action="cancel" class="btn-danger" disabled=host.isSaving}}
|
|
</td>
|
|
{{else}}
|
|
<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>
|
|
<td><div class="label">{{i18n "admin.embedding.path_whitelist"}}</div>{{host.path_whitelist}}</td>
|
|
<td><div class="label">{{i18n "admin.embedding.category"}}</div>{{category-badge host.category}}</td>
|
|
<td class="controls">
|
|
{{d-button icon="pencil" action="edit"}}
|
|
{{d-button icon="trash-o" action="delete" class='btn-danger'}}
|
|
</td>
|
|
{{/if}} |