{{#app-view class="intention list"}} {{#block-slot 'notification' as |status type|}} {{partial 'dc/intentions/notifications'}} {{/block-slot}} {{#block-slot 'header'}}

Intentions {{format-number items.length}} total

{{/block-slot}} {{#block-slot 'actions'}} Create {{/block-slot}} {{#block-slot 'toolbar'}} {{#if (gt items.length 0) }} {{intention-filter searchable=searchable filters=actionFilters search=filters.s type=filters.action onchange=(action 'filter')}} {{/if}} {{/block-slot}} {{#block-slot 'content'}} {{#changeable-set dispatcher=searchable}} {{#block-slot 'set' as |filtered|}} {{#tabular-collection route='dc.intentions.edit' key='SourceName' items=filtered as |item index| }} {{#block-slot 'header'}} Source   Destination Precedence {{/block-slot}} {{#block-slot 'row'}} {{#if (eq item.SourceName '*') }} All Services (*) {{else}} {{item.SourceName}} {{/if}} {{! TODO: slugify }} {{or item.SourceNS 'default'}} {{item.Action}} {{#if (eq item.DestinationName '*') }} All Services (*) {{else}} {{item.DestinationName}} {{/if}} {{! TODO: slugify }} {{or item.DestinationNS 'default'}} {{item.Precedence}} {{/block-slot}} {{#block-slot 'actions' as |index change checked|}} {{#confirmation-dialog confirming=false index=index message='Are you sure you want to delete this intention?'}} {{#block-slot 'action' as |confirm|}} {{#action-group index=index onchange=(action change) checked=(if (eq checked index) 'checked')}} {{/action-group}} {{/block-slot}} {{#block-slot 'dialog' as |execute cancel message|}} {{delete-confirmation message=message execute=execute cancel=cancel}} {{/block-slot}} {{/confirmation-dialog}} {{/block-slot}} {{/tabular-collection}} {{/block-slot}} {{#block-slot 'empty'}}

There are no intentions.

{{/block-slot}} {{/changeable-set}} {{/block-slot}} {{/app-view}}