|
|
@@ -156,15 +156,22 @@ |
|
|
|
"id": "id${newId()}", |
|
|
|
<#if (dfield.readonly = true)> |
|
|
|
"type": "fx-text", |
|
|
|
"disabled": true, |
|
|
|
<#else> |
|
|
|
"type": "fx-${dfield.editor}", |
|
|
|
"type": "${dfield.editor}", |
|
|
|
</#if> |
|
|
|
"props": { |
|
|
|
"label": "${dfield.label}", |
|
|
|
"type": "text", |
|
|
|
"dataset": "${dfield.dataset}", |
|
|
|
"field": "${dfield.id}", |
|
|
|
"required": "${field.required}", |
|
|
|
"required": "${dfield.required}", |
|
|
|
<#if dfield.lookup??> |
|
|
|
"lookup": { |
|
|
|
<#list dfield.lookup as k, v> |
|
|
|
"${k}": "${v}" <#if k_has_next>,</#if> |
|
|
|
</#list> |
|
|
|
}, |
|
|
|
</#if> |
|
|
|
<#if dfield.maxlength gt 0> |
|
|
|
"maxlength": ${dfield.maxlength}, |
|
|
|
</#if> |
|
|
|