13 lines
532 B
Plaintext
13 lines
532 B
Plaintext
/ based on https://www.emberscreencasts.com/posts/172-displaying-errors-inline-with-ember-changeset-validations
|
|
if label
|
|
label= label
|
|
else
|
|
if labelPath
|
|
label= t labelPath
|
|
one-way-input value=(get changeset attribute) update=(action 'setAttribute') onblur=(action 'validateProperty' changeset attribute) disabled=disabled onenter=(action 'inputEnter')
|
|
|
|
if (get changeset.error attribute)
|
|
each (get (get changeset.error attribute) 'validation') as |error|
|
|
.ui.pointing.red.basic.label class=errorDirection
|
|
= error
|