Files
threshold-ui/ui/desktop/app/templates/cluster-url.hbs
T
Devon Anderson 47d7ceccf7 chore: Migrate form.input to use Hds text input field (#2154)
* chore: 🤖 Migrate `form.input` to use `Hds` form input field

Migrate `form.input` for `clusterurl.hbs` to use
`Hds::Form::TextInput::Field`

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12478

* refactor: 💡 removed unused `data-test` attribute

removed unused `data-test` attribute

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12478
2024-02-27 09:31:48 -05:00

41 lines
1.0 KiB
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
<main>
<BrandedCard
@title={{t 'titles.welcome-to-boundary'}}
@description={{t 'descriptions.cluster-url-initialization'}}
>
<Rose::Form
class='full-width'
@onSubmit={{route-action 'setClusterUrl' this.clusterUrl}}
@cancel={{false}}
@disabled={{(is-loading)}}
as |form|
>
<Hds::Form::TextInput::Field
name='host'
@value={{this.clusterUrl}}
{{autofocus}}
{{on 'input' (set-from-event this 'clusterUrl')}}
as |F|
>
<F.Label>{{t 'form.cluster-url.label'}}</F.Label>
<F.HelperText>{{t 'form.cluster-url.description'}}</F.HelperText>
</Hds::Form::TextInput::Field>
<form.actions>
<:actions>
<Hds::Button
@text={{t 'actions.submit'}}
@isFullWidth={{true}}
disabled={{form.disabled}}
type='submit'
/>
</:actions>
</form.actions>
</Rose::Form>
</BrandedCard>
</main>