yoqw/web/cms/app/templates/components/grid-header-batch-actions.hbs
2020-07-01 15:22:07 +08:00

40 lines
1.2 KiB
Handlebars

{{#grid-header
title=title
before-toolbar=before-toolbar
search-box=search-box
reload-button=reload-button
dropdown=dropdown
custom=custom
button=true as |sec|}}
{{#if (and hasBlock sec.before-toolbar)}}
{{yield (hash before-toolbar=true)}}
{{/if}}
{{#if (and sec.button rows-checked)}}
{{!-- prefix butttons --}}
{{#if (and hasBlock pre-btn)}}
{{yield (hash pre-btn=true)}}
{{/if}}
{{#a-btn click=(route-action 'batchEnable') title='启用'}}
<i class="ace-icon fa fa-check bigger-120 green"></i>
{{/a-btn}}
{{#a-btn click=(route-action 'batchDisable') title='禁用'}}
<i class="ace-icon fa fa-ban bigger-120 orange2"></i>
{{/a-btn}}
{{#a-btn click=(route-action 'batchRemove') title='删除'}}
<i class="ace-icon fa fa-trash-o bigger-120 red"></i>
{{/a-btn}}
{{!-- suffix butttons --}}
{{#if (and hasBlock suf-btn)}}
{{yield (hash suf-btn=true)}}
{{/if}}
{{/if}}
{{#if (and hasBlock sec.dropdown)}}
{{yield (hash dropdown=true)}}
{{/if}}
{{/grid-header}}