ui/lib/shared/addon/components/cru-cluster-template-questions/template.hbs

31 lines
1.3 KiB
Handlebars

{{!-- Removed until we can pinpoint the correct way to deal with the questions that are non-scalar types--}}
{{!--
{{#unless applyClusterTemplate}}
<div class="right-buttons">
<button
class="btn bg-primary btn-sm"
{{action "addQuestion"}}
>
<i class="icon icon-plus"></i>
{{t "newMultiClusterApp.overrides.add.label"}}
</button>
</div>
{{/unless}}
--}}
<SortableTable classNames="grid" @body={{rows}} @bulkActions={{bulkActions}} @descending={{descending}}
@headers={{questionsHeaders}} @pagingLabel="pagination.member" @searchText={{searchText}} @sortBy={{sortBy}}
@stickyHeader={{true}} as |sortable kind question dt|>
{{#if (eq kind "row")}}
<ClusterTemplateQuestionRow @questions={{schemaQuestions}} @question={{question}} @removeQuestion={{removeQuestion}}
@applyClusterTemplate={{applyClusterTemplate}} @clusterTemplateCreate={{clusterTemplateCreate}} />
{{else if (eq kind "nomatch")}}
<td colspan="5" class="no-match">
{{t "clusterTemplateQuestions.table.noMatch"}}
</td>
{{else if (eq kind "norows")}}
<td colspan="5" class="no-data">
{{t "clusterTemplateQuestions.table.noData"}}
</td>
{{/if}}
</SortableTable>