open-consul/ui-v2/app/templates/dc/nspaces/edit.hbs
Kenia f6a7164d10
ui: Implements the ember-page-title addon to the UI (#7118)
* Installs ember-page-title 5.x

* Adds a page title to all template files that need one

* Adds an assertion step to test the page titles
2020-01-28 09:25:52 -05:00

30 lines
714 B
Handlebars

{{#if create }}
{{title 'New Namespace'}}
{{else}}
{{title 'Edit Namespace'}}
{{/if}}
{{#app-view class="nspace edit" loading=isLoading}}
{{#block-slot name='notification' as |status type|}}
{{partial 'dc/nspaces/notifications'}}
{{/block-slot}}
{{#block-slot name='breadcrumbs'}}
<ol>
<li><a data-test-back href={{href-to 'dc.nspaces'}}>All Namespaces</a></li>
</ol>
{{/block-slot}}
{{#block-slot name='header'}}
<h1>
{{#if create }}
New Namespace
{{else}}
Edit {{item.Name}}
{{/if}}
</h1>
{{/block-slot}}
{{#block-slot name='actions'}}
{{/block-slot}}
{{#block-slot name='content'}}
{{ partial 'dc/nspaces/form'}}
{{/block-slot}}
{{/app-view}}