open-consul/ui-v2/app/templates/dc/intentions/edit.hbs
John Cowen 31f36ce096 ui: Namespace Support (#6639)
Adds namespace support to the UI:

1. Namespace CRUD/management
2. Show Namespace in relevant areas (intentions, upstreams)
3. Main navigation bar improvements
4. Logic/integration to interact with a new `internal/acl/authorize` endpoint
2019-12-18 12:26:47 +00:00

43 lines
1.4 KiB
Handlebars

{{#app-view class="intention edit" loading=isLoading}}
{{#block-slot 'notification' as |status type|}}
{{partial 'dc/intentions/notifications'}}
{{/block-slot}}
{{#block-slot 'breadcrumbs'}}
<ol>
<li><a data-test-back href={{href-to 'dc.intentions'}}>All Intentions</a></li>
</ol>
{{/block-slot}}
{{#block-slot 'header'}}
<h1>
{{#if item.ID }}
Edit Intention
{{else}}
New Intention
{{/if}}
</h1>
{{/block-slot}}
{{#block-slot 'actions'}}
{{#if (not create) }}
{{#feedback-dialog type='inline'}}
{{#block-slot 'action' as |success error|}}
{{#copy-button success=(action success) error=(action error) clipboardText=item.ID title='copy UUID to clipboard'}}
Copy UUID
{{/copy-button}}
{{/block-slot}}
{{#block-slot 'success' as |transition|}}
<p class={{transition}}>
Copied UUID!
</p>
{{/block-slot}}
{{#block-slot 'error' as |transition|}}
<p class={{transition}}>
Sorry, something went wrong!
</p>
{{/block-slot}}
{{/feedback-dialog}}
{{/if}}
{{/block-slot}}
{{#block-slot 'content'}}
{{ partial 'dc/intentions/form'}}
{{/block-slot}}
{{/app-view}}