From 2a03d0b0ecdea815eacac78a1b42b2c1326fe14e Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Tue, 25 Jul 2023 11:29:05 -0700 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20test=20of=20key/value?= =?UTF-8?q?=20header=20label=20association=20(#1767)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: 🤖 test of key/value header label association * Change variable name --------- Co-authored-by: Carlos Alcaide Corvo --- .../form/field/key-value-list/index.hbs | 147 +++++++++--------- 1 file changed, 72 insertions(+), 75 deletions(-) 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