2017-06-27 00:19:50 +08:00

135 lines
5.3 KiB
Handlebars

{{#main-content}}
<div class="widget-box transparent">
{{#grid-header}}
<li>
{{#link-to 'customer.import'}}
<i class="ace-icon fa fa-address-card-o bigger-110"></i>
导入客户
{{/link-to}}
</li>
<li>
{{#link-to 'customer-ytd-sale.import'}}
<i class="ace-icon fa fa-line-chart bigger-110"></i>
导入销售数据
{{/link-to}}
</li>
{{/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>
{{!--{{sortable-th text='工号'}}--}}
<th class="sorting" {{action (route-action 'sort' 'mobile')}}>
编号
</th>
<th>
名称
</th>
<th>
年份
</th>
<th>
年销售额
</th>
<th class="hidden-480">
国家
</th>
<th class="hidden-480">
省份
</th>
<th class="hidden-480">
城市
</th>
<th class="hidden-480">
MS
</th>
<th class="hidden-480">
区域
</th>
<th>
销售
</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.id}}
</td>
<td>
{{it.name}}
</td>
<td>
{{it.year}}
</td>
<td>
{{it.ytdSale}}
</td>
<td class="hidden-480">
{{it.countryCode}}
</td>
<td class="hidden-480">
{{it.state}}
</td>
<td class="hidden-480">
{{it.city}}
</td>
<td class="hidden-480">
{{it.ms}}
</td>
<td class="hidden-480">
{{it.region}}
</td>
<td>
{{it.salesperson}}
</td>
<td>
<div class="hidden-sm hidden-xs btn-group">
{{status-toggle-button model=it}}
{{#link-to 'customer.edit' it.id class='btn btn-xs btn-info' title='编辑'}}
<i class="ace-icon fa fa-pencil bigger-120"></i>
{{/link-to}}
{{op-detail it.id}}
</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}}
</li>
<li>
{{#link-to 'customer.edit' it.id class='tooltip-info' data-rel='tooltip' title='编辑'}}
<span class="blue">
<i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
</span>
{{/link-to}}
</li>
</ul>
</div>
</div>
</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
{{pagination-bar}}
</div>
</div>
{{/main-content}}