2018-02-12 20:23:03 +08:00

113 lines
5.1 KiB
Handlebars

{{#main-content}}
<div class="widget-box transparent">
{{#grid-header}}
<li>
{{#link-to 'user.create'}}
<i class="ace-icon fa fa-plus-circle bigger-110 green"></i>
Create User
{{/link-to}}
</li>
{{/grid-header}}
<div class="widget-body">
<!-- #section:custom/scrollbar -->
<div class="widget-main no-padding table-responsive no-border">
<table class="table table-striped table-bordered table-hover dataTable" style="border: 1px solid #ddd;">
<thead class="thin-border-bottom">
<tr>
{{sortable-th name='employeeId' text='Emp ID' style='min-width: 105px;'}}
{{sortable-th name='account' text='Acct'}}
<th>
Name
</th>
{{sortable-th name='enName' text='Name(EN)' style='min-width: 130px;'}}
<th>
Admin
</th>
<th>
<i class="ace-icon fa fa-sticky-note-o bigger-110"></i>
Remark
</th>
<th>
<i class="ace-icon fa fa-exchange bigger-110"></i>
Status
</th>
<th>
<i class="ace-icon fa fa-cogs bigger-110"></i>
Settings
</th>
</tr>
</thead>
<tbody>
{{#each model.data as |it|}}
<tr>
<td>
{{it.employeeId}}
</td>
<td>
{{it.account}}
</td>
<td>
{{it.name}}
</td>
<td>
{{it.enName}}
</td>
<td>
{{status-cell model=it field='admin' enabledText='YES' disabledText='NO'}}
</td>
<td>
{{editable-cell model=it field='note'}}
</td>
<td>
{{status-cell model=it field='enabled' enabledText='ACTIVE' disabledText='BLOCKED'}}
</td>
<td>
<div class="hidden-sm hidden-xs btn-group">
{{status-toggle-button model=it enabledOp='active' disabledOp='block' enabledText='Active User' disabledText='Block User'}}
{{#link-to 'user.edit' it.id class='btn btn-xs btn-info' data-rel='tooltip' title='Edit User'}}
<i class="ace-icon fa fa-pencil bigger-120"></i>
{{/link-to}}
{{#unless it.enabled}}
{{delete-btn model=it}}
{{/unless}}
</div>
<div class="hidden-md hidden-lg">
<div class="inline pos-rel">
<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
<i class="ace-icon fa fa-cog icon-only bigger-110"></i>
</button>
<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
<li>
{{status-toggle-button model=it iconOnly=true enabledOp='active' disabledOp='block'}}
</li>
<li>
{{#link-to 'user.edit' it.id class='tooltip-info' data-rel='tooltip' title='Edit User'}}
<span class="blue">
<i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
</span>
{{/link-to}}
</li>
{{#unless it.enabled}}
<li>
{{delete-btn model=it icon-only=true}}
</li>
{{/unless}}
</ul>
</div>
</div>
</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
{{pagination-bar}}
</div>
</div>
{{/main-content}}