diff --git a/ui/admin/app/components/form/field/key-value-list/index.hbs b/ui/admin/app/components/form/field/key-value-list/index.hbs index 45b9e7636..ba5f88bad 100644 --- a/ui/admin/app/components/form/field/key-value-list/index.hbs +++ b/ui/admin/app/components/form/field/key-value-list/index.hbs @@ -9,95 +9,92 @@ @isOptional={{@isOptional}} as |F| > - {{yield F}} - - - <:head as |H|> - - {{t 'form.key.label'}} - {{t 'form.value.label'}} - - {{#if @removeOptionByIndex}} - {{t 'titles.actions'}} - {{/if}} - - - - <:body as |B|> - {{#each @options as |option index|}} + {{yield F}} + + {{#let (unique-id) (unique-id) as |keyHeaderID valueHeaderID|}} + + + <:head as |H|> + + {{t 'form.key.label'}} + {{t 'form.value.label'}} + + {{#if @removeOptionByIndex}} + {{t 'titles.actions'}} + {{/if}} + + + + <:body as |B|> + + {{#each @options as |option index|}} + + + + + + + + + {{#if @removeOptionByIndex}} + + {{/if}} + + + {{/each}} + - {{t 'form.key.label'}} - + aria-labelledby={{keyHeaderID}} + {{on 'input' (set-from-event this 'newOptionKey')}} + /> - {{t 'form.value.label'}} - + aria-labelledby={{valueHeaderID}} + {{on 'input' (set-from-event this 'newOptionValue')}} + /> - {{#if @removeOptionByIndex}} - - {{/if}} + - {{/each}} - - - - {{t 'form.key.label'}} - - - - {{t 'form.value.label'}} - - - - - - - - - - + + + + {{/let}} \ No newline at end of file