github.com/outbrain/consul@v1.4.5/ui-v2/app/templates/dc/acls/policies/edit.hbs (about) 1 {{#app-view class=(concat 'policy ' (if (or isAuthorized isEnabled) 'edit' 'list')) loading=isLoading authorized=isAuthorized enabled=isEnabled}} 2 {{#block-slot 'notification' as |status type|}} 3 {{partial 'dc/acls/policies/notifications'}} 4 {{/block-slot}} 5 {{#block-slot 'disabled'}} 6 {{partial 'dc/acls/disabled'}} 7 {{/block-slot}} 8 {{#block-slot 'authorization'}} 9 {{partial 'dc/acls/authorization'}} 10 {{/block-slot}} 11 {{#block-slot 'breadcrumbs'}} 12 <ol> 13 <li><a data-test-back href={{href-to 'dc.acls.policies'}}>All Policies</a></li> 14 </ol> 15 {{/block-slot}} 16 {{#block-slot 'header'}} 17 <h1> 18 {{#if isAuthorized }} 19 {{#if create }} 20 New Policy 21 {{else}} 22 {{#if (policy/is-management item)}} 23 View Policy 24 {{else}} 25 Edit Policy 26 {{/if}} 27 {{/if}} 28 {{else}} 29 Access Controls 30 {{/if}} 31 </h1> 32 {{/block-slot}} 33 {{#block-slot 'content'}} 34 {{#if (policy/is-management item)}} 35 {{ partial 'dc/acls/policies/view'}} 36 {{else}} 37 {{ partial 'dc/acls/policies/form'}} 38 {{/if}} 39 {{/block-slot}} 40 {{/app-view}}