2015-08-18 17:15:46 -04:00
|
|
|
{{#if editing}}
|
|
|
|
<td>
|
|
|
|
{{input value=buffered.host placeholder="example.com" enter="save" class="host-name"}}
|
|
|
|
</td>
|
2017-05-05 18:08:18 -04:00
|
|
|
<td>
|
|
|
|
{{input value=buffered.class_name placeholder="class" enter="save" class="class-name"}}
|
|
|
|
</td>
|
2016-08-23 14:55:52 -04:00
|
|
|
<td>
|
|
|
|
{{input value=buffered.path_whitelist placeholder="/blog/.*" enter="save" class="path-whitelist"}}
|
|
|
|
</td>
|
2015-08-18 17:15:46 -04:00
|
|
|
<td>
|
|
|
|
{{category-chooser value=categoryId}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{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>{{host.host}}</td>
|
2017-05-05 18:08:18 -04:00
|
|
|
<td>{{host.class_name}}</td>
|
2016-08-23 14:55:52 -04:00
|
|
|
<td>{{host.path_whitelist}}</td>
|
2015-08-18 17:15:46 -04:00
|
|
|
<td>{{category-badge host.category}}</td>
|
|
|
|
<td>
|
|
|
|
{{d-button icon="pencil" action="edit"}}
|
|
|
|
{{d-button icon="trash-o" action="delete" class='btn-danger'}}
|
|
|
|
</td>
|
|
|
|
{{/if}}
|