-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'DES/enhancement/705-vl-refactor/radio' into DES/enhance…
…ment/#705-vl-refactor # Conflicts: # app/styles/app.scss
- Loading branch information
Showing
5 changed files
with
38 additions
and
168 deletions.
There are no files selected for viewing
46 changes: 16 additions & 30 deletions
46
app/pods/components/utils/radio-dropdown-combo-select/template.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 22 additions & 31 deletions
53
app/pods/components/web-components/vl-radio-button-list/template.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,24 @@ | ||
<div class="vlc-input-field-block"> | ||
<label class="vl-form__label auk-u-block"> | ||
{{title}} | ||
</label> | ||
<div class="vlc-radio-inline"> | ||
<fieldset> | ||
<legend class="auk-label">{{title}}</legend> | ||
<WebComponents::AuRadioList @layout="inline"> | ||
{{#each optionList as |option index|}} | ||
<label class="vl-radio"> | ||
{{#if selectedModel}} | ||
<input | ||
class="vl-radio__toggle" | ||
value={{option.id}} | ||
type="radio" | ||
name={{title}} | ||
checked={{eq option.id selectedModel.id}} | ||
onchange={{action "modelChanged"}} | ||
/> | ||
{{else}} | ||
<input | ||
class="vl-radio__toggle" | ||
value={{option.id}} | ||
type="radio" | ||
name={{title}} | ||
checked={{eq index 0}} | ||
onchange={{action "modelChanged"}} | ||
/> | ||
{{/if}} | ||
<div class="vl-radio__label"> | ||
{{option.label}} | ||
</div> | ||
</label> | ||
{{#if selectedModel}} | ||
<WebComponents::AuRadio | ||
value={{option.id}} | ||
name={{title}} | ||
checked={{eq option.id selectedModel.id}} | ||
onchange={{action "modelChanged"}} | ||
@label={{option.label}} | ||
/> | ||
{{else}} | ||
<WebComponents::AuRadio | ||
value={{option.id}} | ||
name={{title}} | ||
checked={{eq index 0}} | ||
onchange={{action "modelChanged"}} | ||
@label={{option.label}} | ||
/> | ||
{{/if}} | ||
{{/each}} | ||
</div> | ||
</div> | ||
</WebComponents::AuRadioList> | ||
</fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.