open-consul/ui-v2/app/templates/dc/intentions/edit.hbs
John Cowen c0abe1e406
ui: Outlet Loading (#8779)
Moves all Route/model hook loading to use Outlet components which listen on route change.
2020-10-01 09:33:22 +01:00

33 lines
727 B
Handlebars

{{#if item.ID}}
{{title 'Edit Intention'}}
{{else}}
{{title 'New Intention'}}
{{/if}}
<AppView>
<BlockSlot @name="breadcrumbs">
<ol>
<li><a data-test-back href={{href-to 'dc.intentions'}}>All Intentions</a></li>
</ol>
</BlockSlot>
<BlockSlot @name="header">
<h1>
{{#if item.IsEditable}}
{{#if item.ID}}
Edit Intention
{{else}}
New Intention
{{/if}}
{{else}}
View Intention
{{/if}}
</h1>
</BlockSlot>
<BlockSlot @name="content">
<ConsulIntentionForm
@item={{item}}
@dc={{dc}}
@nspace={{nspace}}
@onsubmit={{transition-to 'dc.intentions.index' dc}}
/>
</BlockSlot>
</AppView>