* [COMPLIANCE] Add Copyright and License Headers * chore: 🤖 update Copyright headers to satisfy our lint rules --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
67 lines
1.8 KiB
Handlebars
67 lines
1.8 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: MPL-2.0
|
|
}}
|
|
|
|
{{#if this.hasAvailableHosts}}
|
|
<Rose::Form
|
|
class='full-width'
|
|
@onSubmit={{fn this.submit @submit}}
|
|
@cancel={{@cancel}}
|
|
@disabled={{@model.isSaving}}
|
|
as |form|
|
|
>
|
|
|
|
<form.actions
|
|
@submitText={{t 'actions.add-hosts'}}
|
|
@cancelText={{t 'actions.cancel'}}
|
|
/>
|
|
|
|
<Rose::Table as |table|>
|
|
<table.header as |header|>
|
|
<header.row as |row|>
|
|
<row.headerCell>{{t 'form.name.label'}}</row.headerCell>
|
|
<row.headerCell>{{t 'form.type.label'}}</row.headerCell>
|
|
<row.headerCell>{{t 'form.id.label'}}</row.headerCell>
|
|
</header.row>
|
|
</table.header>
|
|
<table.body as |body|>
|
|
{{#each this.filteredHosts as |host|}}
|
|
<body.row as |row|>
|
|
<row.cell>
|
|
<form.checkbox
|
|
@label={{host.id}}
|
|
@description={{host.description}}
|
|
@onChange={{fn this.toggleHost host}}
|
|
/>
|
|
</row.cell>
|
|
<row.cell>{{host.name}}</row.cell>
|
|
<row.cell>
|
|
<Hds::Badge @text={{host.type}} />
|
|
</row.cell>
|
|
</body.row>
|
|
{{/each}}
|
|
</table.body>
|
|
</Rose::Table>
|
|
|
|
</Rose::Form>
|
|
{{/if}}
|
|
|
|
{{#unless this.hasAvailableHosts}}
|
|
<Rose::Layout::Centered>
|
|
<Rose::Message
|
|
@title={{t 'resources.host-set.host.messages.add-none.title'}}
|
|
as |message|
|
|
>
|
|
<message.description>
|
|
{{t 'resources.host-set.host.messages.add-none.description'}}
|
|
</message.description>
|
|
<message.link
|
|
@route='scopes.scope.host-catalogs.host-catalog.host-sets.host-set.hosts'
|
|
>
|
|
<Rose::Icon @name='flight-icons/svg/chevron-left-16' />
|
|
{{t 'actions.back'}}
|
|
</message.link>
|
|
</Rose::Message>
|
|
</Rose::Layout::Centered>
|
|
{{/unless}} |