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

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

{{/block-slot}} {{#block-slot name='actions'}} Create {{/block-slot}} {{#block-slot name='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 name='content'}} {{#changeable-set dispatcher=searchable}} {{#block-slot name='set' as |filtered|}} {{#tabular-collection route='dc.intentions.edit' key='SourceName' items=filtered as |item index| }} {{#block-slot name='header'}} Source   Destination Precedence {{/block-slot}} {{#block-slot name='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 name='actions' as |index change checked|}} {{#confirmation-dialog confirming=false index=index message='Are you sure you want to delete this intention?'}} {{#block-slot name='action' as |confirm|}} {{#action-group index=index onchange=(action change) checked=(if (eq checked index) 'checked')}} {{/action-group}} {{/block-slot}} {{#block-slot name='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 name='empty'}}

There are no intentions.

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