2020-01-28 14:25:52 +00:00
|
|
|
{{#if item.ID }}
|
|
|
|
{{title 'Edit Intention'}}
|
|
|
|
{{else}}
|
|
|
|
{{title 'New Intention'}}
|
|
|
|
{{/if}}
|
|
|
|
|
2019-12-17 18:47:37 +00:00
|
|
|
{{#app-view class="intention edit" loading=isLoading}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='notification' as |status type|}}
|
2018-08-29 18:14:31 +00:00
|
|
|
{{partial 'dc/intentions/notifications'}}
|
|
|
|
{{/block-slot}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='breadcrumbs'}}
|
2018-05-22 15:03:45 +00:00
|
|
|
<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}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='header'}}
|
2018-05-22 15:03:45 +00:00
|
|
|
<h1>
|
|
|
|
{{#if item.ID }}
|
|
|
|
Edit Intention
|
|
|
|
{{else}}
|
|
|
|
New Intention
|
|
|
|
{{/if}}
|
|
|
|
</h1>
|
|
|
|
{{/block-slot}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='actions'}}
|
2018-05-22 15:03:45 +00:00
|
|
|
{{#if (not create) }}
|
|
|
|
{{#feedback-dialog type='inline'}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='action' as |success error|}}
|
2018-05-22 15:03:45 +00:00
|
|
|
{{#copy-button success=(action success) error=(action error) clipboardText=item.ID title='copy UUID to clipboard'}}
|
|
|
|
Copy UUID
|
|
|
|
{{/copy-button}}
|
|
|
|
{{/block-slot}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='success' as |transition|}}
|
2018-09-21 10:13:21 +00:00
|
|
|
<p class={{transition}}>
|
2018-05-22 15:03:45 +00:00
|
|
|
Copied UUID!
|
|
|
|
</p>
|
|
|
|
{{/block-slot}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='error' as |transition|}}
|
2018-09-21 10:13:21 +00:00
|
|
|
<p class={{transition}}>
|
2018-05-22 15:03:45 +00:00
|
|
|
Sorry, something went wrong!
|
|
|
|
</p>
|
|
|
|
{{/block-slot}}
|
|
|
|
{{/feedback-dialog}}
|
|
|
|
{{/if}}
|
|
|
|
{{/block-slot}}
|
2020-01-15 09:15:54 +00:00
|
|
|
{{#block-slot name='content'}}
|
2018-05-22 15:03:45 +00:00
|
|
|
{{ partial 'dc/intentions/form'}}
|
|
|
|
{{/block-slot}}
|
|
|
|
{{/app-view}}
|