{{#unless (or (contains attr.options.editType (array "boolean" "searchSelect" "mountAccessor" "kv" "file" "ttl" "stringArray" "json" ) ) (eq attr.type "boolean") ) }} {{/unless}} {{#if attr.options.possibleValues}}
{{else if (eq attr.options.editType "ttl")}} {{ttl-picker initialValue=(or (get model attr.name) attr.options.defaultValue) labelText=(if attr.options.label attr.options.label (humanize (dasherize attr.name)) ) setDefaultValue=false onChange=(action (mut (get model attr.name))) }} {{else if (or (eq attr.type "number") (eq attr.type "string"))}}
{{input id=attr.name value=(get model (or attr.options.fieldValue attr.name)) class="input" data-test-input=attr.name }}
{{else if (eq attr.type "boolean")}}
{{else if (eq attr.type "object")}} {{json-editor value=(if (get model attr.name) (stringify (get model attr.name)) emptyData ) valueUpdated=(action "codemirrorUpdated" attr.name) }} {{/if}}