mirror of https://github.com/rancher/ui.git
35 lines
1.5 KiB
Handlebars
35 lines
1.5 KiB
Handlebars
<SortableTable @selectionChanged={{selectionChanged}} @body={{rows}} @bulkActions={{true}} @class="grid" @descending={{descending}}
|
|
@groupByKey="clusterTemplateId" @groupByRef="clusterTemplate" @headers={{headers}}
|
|
@pagingLabel="pagination.clusterTemplates" @searchText={{searchText}} @sortBy={{sortBy}}
|
|
@extraSearchFields={{extraSearchFields}} @subRows={{true}} @suffix={{suffix}} as |sortable kind inst dt|>
|
|
{{#if (eq kind "row")}}
|
|
<ClusterTemplateRow @model={{inst}} @fullColspan={{sortable.fullColspan}} @dt={{dt}} />
|
|
{{else if (eq kind "group")}}
|
|
<ClusterTemplateRow @model={{inst.ref}} @fullColspan={{sortable.fullColspan}} @dt={{dt}} @isGroup={{true}} />
|
|
{{else if (eq kind "suffix")}}
|
|
{{#if (and clusterTemplatesWithoutRevisionsRows.length (not searchText.length))}}
|
|
<tbody class="fixed grid group">
|
|
{{#each clusterTemplatesWithoutRevisionsRows as |inst|}}
|
|
<ClusterTemplateRow @model={{inst}} @fullColspan={{sortable.fullColspan}} @dt={{dt}} @isGroup={{true}} />
|
|
{{/each}}
|
|
</tbody>
|
|
{{/if}}
|
|
{{else if (eq kind "nomatch")}}
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="{{sortable.fullColspan}}" class="no-match">
|
|
{{t "clusterTemplateRow.noMatch"}}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
{{else if (eq kind "norows")}}
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="{{sortable.fullColspan}}" class="no-data">
|
|
{{t "clusterTemplateRow.noData"}}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
{{/if}}
|
|
</SortableTable>
|