84 lines
3.5 KiB
Handlebars
84 lines
3.5 KiB
Handlebars
<div class="widget-box transparent" style="padding-top: 2px; border: 1px solid #ddd;">
|
|
{{#grid-header}}
|
|
{{#has-perm 'PERM_VIEW_IVR_MENU_CREATE'}}
|
|
<li>
|
|
{{#link-to 'ivr-menu.create'}}
|
|
<i class="ace-icon fa fa-plus-circle bigger-110 green"></i>
|
|
新建IVR菜单
|
|
{{/link-to}}
|
|
</li>
|
|
{{/has-perm}}
|
|
{{/grid-header}}
|
|
|
|
<div class="widget-body">
|
|
<!-- #section:custom/scrollbar -->
|
|
<div class="widget-main no-padding">
|
|
<table class="table table-striped table-bordered table-hover dataTable">
|
|
<thead class="thin-border-bottom">
|
|
<tr>
|
|
<th>
|
|
名称
|
|
</th>
|
|
<th>
|
|
<i class="ace-icon fa fa-sticky-note-o bigger-110"></i>
|
|
备注
|
|
</th>
|
|
<th>
|
|
<i class="ace-icon fa fa-exchange bigger-110 hidden-480"></i>
|
|
{{th-filter name='active'
|
|
text='状态'
|
|
dialog-title='状态'
|
|
options=(array (hash value=true text='启用')
|
|
(hash value=false text='禁用'))
|
|
}}
|
|
</th>
|
|
<th>
|
|
<i class="ace-icon fa fa-cogs bigger-110 hidden-480"></i>
|
|
管理
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each model.data as |it|}}
|
|
<tr>
|
|
<td>
|
|
{{it.name}}
|
|
</td>
|
|
<td>
|
|
{{editable-cell model=it field='note'}}
|
|
</td>
|
|
<td>
|
|
{{status-cell model=it}}
|
|
</td>
|
|
<td>
|
|
<div class="btn-group">
|
|
{{#has-perm 'PERM_VIEW_IVR_ENTRY_LIST'}}
|
|
{{#link-to 'ivr-entry.list'
|
|
(query-params menuId=it.id)
|
|
class='btn btn-xs btn-info'
|
|
data-rel='tooltip'
|
|
title='入口列表'}}
|
|
<i class="ace-icon fa fa-sliders bigger-120"></i>
|
|
{{/link-to}}
|
|
{{/has-perm}}
|
|
{{#has-perm 'PERM_VIEW_IVR_MENU_EDIT'}}
|
|
{{status-toggle-button model=it}}
|
|
{{edit-btn route-name='ivr-menu.edit' model-id=it.id perm='PERM_VIEW_IVR_MENU_EDIT'}}
|
|
{{/has-perm}}
|
|
{{#has-perm 'PERM_VIEW_IVR_MENU_DELETE'}}
|
|
{{#unless it.active}}
|
|
{{delete-button model=it}}
|
|
{{/unless}}
|
|
{{/has-perm}}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{pagination-bar}}
|
|
</div>
|
|
</div>
|
|
{{outlet}}
|