Files
threshold-ui/addons/rose/addon/components/rose/form/fieldset/index.hbs
T
hashicc 72fa6d86c4 Update copyright headers (#3161)
* chore: 🤖 remove hashi copyright .github headers and update config

* chore: 🤖 remove remaining hashicorp copyright headers

* Add missing copyright headers
2026-02-03 12:08:35 -05:00

40 lines
850 B
Handlebars

{{!
Copyright IBM Corp. 2021, 2026
SPDX-License-Identifier: BUSL-1.1
}}
<fieldset
...attributes
class='rose-form-fieldset'
aria-describedby={{if
(has-block 'description')
(concat 'description-' this.id)
}}
>
<legend id={{concat 'title-' this.id}} class='rose-form-fieldset-title'>
{{yield to='title'}}
</legend>
{{#if (has-block 'description')}}
<div
id={{concat 'description-' this.id}}
class='rose-form-fieldset-description'
>
{{yield to='description'}}
</div>
{{/if}}
{{#if @helperText}}
<Rose::Form::HelperText
@id='helper-text-{{this.id}}'
@error={{@error}}
@link={{@link}}
@linkText={{@linkText}}
>
{{@helperText}}
</Rose::Form::HelperText>
{{/if}}
<div class='rose-form-fieldset-body'>
{{yield to='body'}}
</div>
</fieldset>