vault/ui/app/components/auth/namespace-input.hbs
Vault Automation 0c6c13dd38
license: update headers to IBM Corp. (#10229) (#10233)
* license: update headers to IBM Corp.
* `make proto`
* update offset because source file changed

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2025-10-21 15:20:20 -06:00

49 lines
1.5 KiB
Handlebars

{{!
Copyright IBM Corp. 2016, 2025
SPDX-License-Identifier: BUSL-1.1
}}
<div class="background-neutral-50 has-padding-l">
{{#if this.flags.hvdManagedNamespaceRoot}}
<Hds::Form::Field @layout="vertical" disabled={{@disabled}} as |F|>
<F.Label>Namespace</F.Label>
<F.Control>
<Hds::SegmentedGroup class="is-fullwidth" as |SG|>
<SG.TextInput
@type="text"
@value="/{{this.flags.hvdManagedNamespaceRoot}}"
aria-label="Root namespace for H-C-P managed cluster"
class="one-fourth-width"
name="hvd-root-namespace"
readonly
data-test-managed-namespace-root
/>
<SG.TextInput
{{on "input" this.handleInput}}
{{did-insert this.maybeRefocus}}
@value={{this.namespaceInput}}
autocomplete="off"
disabled={{@disabled}}
name="namespace"
placeholder="/ (default)"
data-test-input="namespace"
/>
</Hds::SegmentedGroup>
</F.Control>
</Hds::Form::Field>
{{else}}
<Hds::Form::TextInput::Field
{{on "input" this.handleInput}}
{{did-insert this.maybeRefocus}}
@value={{this.namespaceInput}}
autocomplete="off"
disabled={{@disabled}}
name="namespace"
placeholder="/ (root)"
data-test-input="namespace"
as |F|
>
<F.Label>Namespace</F.Label>
</Hds::Form::TextInput::Field>
{{/if}}
</div>