2020-01-28 14:25:52 +00:00
|
|
|
{{#if item.ID }}
|
|
|
|
{{title 'Edit Intention'}}
|
|
|
|
{{else}}
|
|
|
|
{{title 'New Intention'}}
|
|
|
|
{{/if}}
|
|
|
|
|
2020-02-19 19:26:38 +00:00
|
|
|
<AppView @class="intention edit" @loading={{isLoading}}>
|
2020-05-19 16:18:04 +00:00
|
|
|
<BlockSlot @name="notification" as |status type item error|>
|
2018-08-29 18:14:31 +00:00
|
|
|
{{partial 'dc/intentions/notifications'}}
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="breadcrumbs">
|
2018-05-22 15:03:45 +00:00
|
|
|
<ol>
|
2020-04-16 14:15:45 +00:00
|
|
|
{{#if (gt history.length 0)}}
|
|
|
|
<li><a href={{href-to 'dc.services'}}>All Services</a></li>
|
|
|
|
{{#let history.firstObject as |back|}}
|
|
|
|
<li><a data-test-back href={{href-to back.key back.value}}>{{concat 'Service (' back.value ')'}}</a></li>
|
|
|
|
{{/let}}
|
|
|
|
{{else}}
|
|
|
|
<li><a data-test-back href={{href-to 'dc.intentions'}}>All Intentions</a></li>
|
|
|
|
{{/if}}
|
2018-05-22 15:03:45 +00:00
|
|
|
</ol>
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="header">
|
2018-05-22 15:03:45 +00:00
|
|
|
<h1>
|
|
|
|
{{#if item.ID }}
|
|
|
|
Edit Intention
|
|
|
|
{{else}}
|
|
|
|
New Intention
|
|
|
|
{{/if}}
|
|
|
|
</h1>
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="actions">
|
2018-05-22 15:03:45 +00:00
|
|
|
{{#if (not create) }}
|
2020-05-12 12:36:03 +00:00
|
|
|
<CopyButton @value={{item.ID}} @name="UUID">
|
|
|
|
Copy UUID
|
|
|
|
</CopyButton>
|
2018-05-22 15:03:45 +00:00
|
|
|
{{/if}}
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="content">
|
2020-04-01 08:55:49 +00:00
|
|
|
<ConsulIntentionForm
|
|
|
|
@item={{item}}
|
|
|
|
@services={{services}}
|
|
|
|
@nspaces={{nspaces}}
|
|
|
|
@ondelete={{action "route" "delete"}}
|
|
|
|
@onsubmit={{action "route" (if item.isNew "create" "update")}}
|
|
|
|
@oncancel={{action "route" "cancel"}}
|
|
|
|
/>
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
</AppView>
|