This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/select-kit/templates/components/select-kit/select-kit-collection.hbs
2018-04-05 16:45:19 +02:00

55 lines
1.3 KiB
Handlebars

{{#if collectionHeaderComputedContent}}
<div class="collection-header">
{{{collectionHeaderComputedContent}}}
</div>
{{/if}}
{{#if hasSelection}}
{{#if noneRowComputedContent}}
{{component noneRowComponent
computedContent=noneRowComputedContent
templateForRow=templateForNoneRow
highlighted=highlighted
onMouseoverRow=onMouseoverRow
computedValue=computedValue
options=rowComponentOptions
onClickRow=onClickRow
}}
{{/if}}
{{/if}}
{{#if createRowComputedContent}}
{{component createRowComponent
computedContent=createRowComputedContent
highlighted=highlighted
computedValue=computedValue
templateForRow=templateForCreateRow
onMouseoverRow=onMouseoverRow
onClickRow=onClickRow
options=rowComponentOptions
}}
{{/if}}
{{#if noContentRow}}
<li class="select-kit-row no-content">
{{noContentRow}}
</li>
{{else}}
{{#if validationMessage}}
<div class="validation-message">
{{validationMessage}}
</div>
{{/if}}
{{#each collectionComputedContent as |computedContent|}}
{{component rowComponent
computedContent=computedContent
highlighted=highlighted
computedValue=computedValue
templateForRow=templateForRow
onClickRow=onClickRow
onMouseoverRow=onMouseoverRow
options=rowComponentOptions
}}
{{/each}}
{{/if}}