2018-05-22 15:03:45 +00:00
|
|
|
{{#app-view class="acl edit" loading=isLoading}}
|
2018-08-29 18:14:31 +00:00
|
|
|
{{#block-slot 'notification' as |status type|}}
|
|
|
|
{{partial 'dc/intentions/notifications'}}
|
|
|
|
{{/block-slot}}
|
2018-05-22 15:03:45 +00:00
|
|
|
{{#block-slot 'breadcrumbs'}}
|
|
|
|
<ol>
|
2018-07-04 16:23:33 +00:00
|
|
|
<li><a data-test-back href={{href-to 'dc.intentions'}}>All Intentions</a></li>
|
2018-05-22 15:03:45 +00:00
|
|
|
</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'}}
|
|
|
|
<p>
|
|
|
|
Copied UUID!
|
|
|
|
</p>
|
|
|
|
{{/block-slot}}
|
|
|
|
{{#block-slot 'error'}}
|
|
|
|
<p>
|
|
|
|
Sorry, something went wrong!
|
|
|
|
</p>
|
|
|
|
{{/block-slot}}
|
|
|
|
{{/feedback-dialog}}
|
|
|
|
{{/if}}
|
|
|
|
{{/block-slot}}
|
|
|
|
{{#block-slot 'content'}}
|
|
|
|
{{ partial 'dc/intentions/form'}}
|
|
|
|
{{/block-slot}}
|
|
|
|
{{/app-view}}
|