24 lines
581 B
Plaintext
24 lines
581 B
Plaintext
/ based on validated-input
|
|
if label
|
|
label= label
|
|
else
|
|
if labelPath
|
|
label= t labelPath
|
|
else
|
|
label= attribute
|
|
|
|
x-select value=(get changeset attribute) on-change=(action "hasChanged") disabled=disabled as |xs|
|
|
if includeBlank
|
|
option= blankContent
|
|
each options as |option|
|
|
if valueKey
|
|
xs.option value=(get option valueKey)
|
|
= get option textKey
|
|
else
|
|
xs.option value=option
|
|
= option
|
|
|
|
if (get changeset.error attribute)
|
|
each (get (get changeset.error attribute) 'validation') as |error|
|
|
.ui.pointing.red.basic.label= error
|