Files
ember-cli-dunlop/app/templates/components/validated-select.emblem
T
2017-12-21 11:42:41 +01:00

23 lines
580 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