Merge pull request #658 from hashicorp/fieldset

fieldset usage
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2021-07-22 14:00:28 -07:00
commit 123476a3a8
2 files changed
+18 -10

No files matched your search

@@ -20,6 +20,7 @@
input=(component 'rose/form/input' disabled=this.disabled)
select=(component 'rose/form/select' disabled=this.disabled)
textarea=(component 'rose/form/textarea' disabled=this.disabled)
fieldset=(component 'rose/form/fieldset')
actions=(component
(if this.showEditToggleButton
'rose/form/actions/edit-toggle'
@@ -63,16 +63,23 @@
{{/if}}
</form.input>
<form.radioGroup
@name='http_method'
@selectedValue={{@model.attributes.http_method}}
@changed={{fn (mut @model.attributes.http_method)}}
as |radioGroup|
>
{{#each this.httpMethods as |httpMethod|}}
<radioGroup.radio @label={{httpMethod}} @value={{httpMethod}} />
{{/each}}
</form.radioGroup>
<form.fieldset>
<:title>{{t 'form.http_method.label'}}</:title>
<:description>{{t 'form.http_method.help'}}</:description>
<:body>
<form.radioGroup
@name='http_method'
@selectedValue={{@model.attributes.http_method}}
@changed={{fn (mut @model.attributes.http_method)}}
@inline={{true}}
as |radioGroup|
>
{{#each this.httpMethods as |httpMethod|}}
<radioGroup.radio @label={{httpMethod}} @value={{httpMethod}} />
{{/each}}
</form.radioGroup>
</:body>
</form.fieldset>
<form.textarea
@name='http_request_body'