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

Intentions

{{/block-slot}} {{#block-slot 'actions'}} Create {{/block-slot}} {{#block-slot 'toolbar'}} {{#if (gt items.length 0) }} {{intention-filter filters=actionFilters search=filters.s type=filters.action onchange=(action 'filter')}} {{/if}} {{/block-slot}} {{#block-slot 'content'}} {{#if (gt filtered.length 0) }} {{#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}} {{item.Action}} {{#if (eq item.DestinationName '*') }} All Services (*) {{else}} {{item.DestinationName}} {{/if}} {{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}} {{else}}

There are no intentions.

{{/if}} {{/block-slot}} {{/app-view}}