@@ -25,9 +25,23 @@ | |||||
"required": "${dfield.required}", | "required": "${dfield.required}", | ||||
<#if dfield.lookup??> | <#if dfield.lookup??> | ||||
"lookup": { | "lookup": { | ||||
<#list dfield.lookup as k, v> | |||||
"${k}": "${v}" <#if k_has_next>,</#if> | |||||
</#list> | |||||
<#list dfield.lookup as k, v> | |||||
<#if v?is_enumerable> | |||||
"${k}": [ | |||||
<#list v as v1> | |||||
{ | |||||
<#list v1 as vk1, vv1> | |||||
"${vk1}": "${vv1}"<#if vk1_has_next>,</#if> | |||||
</#list> | |||||
} | |||||
<#if v1_has_next>,</#if> | |||||
</#list> | |||||
] | |||||
<#else> | |||||
"${k}": "${v}" | |||||
</#if> | |||||
<#if k_has_next>,</#if> | |||||
</#list> | |||||
}, | }, | ||||
</#if> | </#if> | ||||
<#if dfield.maxlength gt 0> | <#if dfield.maxlength gt 0> | ||||
@@ -33,7 +33,21 @@ | |||||
<#if filter.lookup??> | <#if filter.lookup??> | ||||
"lookup": { | "lookup": { | ||||
<#list filter.lookup as k, v> | <#list filter.lookup as k, v> | ||||
"${k}": "${v}" <#if k_has_next>,</#if> | |||||
<#if v?is_enumerable> | |||||
"${k}": [ | |||||
<#list v as v1> | |||||
{ | |||||
<#list v1 as vk1, vv1> | |||||
"${vk1}": "${vv1}"<#if vk1_has_next>,</#if> | |||||
</#list> | |||||
} | |||||
<#if v1_has_next>,</#if> | |||||
</#list> | |||||
] | |||||
<#else> | |||||
"${k}": "${v}" | |||||
</#if> | |||||
<#if k_has_next>,</#if> | |||||
</#list> | </#list> | ||||
}, | }, | ||||
</#if> | </#if> | ||||
@@ -59,9 +59,23 @@ | |||||
"field": "${filter.id}", | "field": "${filter.id}", | ||||
<#if filter.lookup??> | <#if filter.lookup??> | ||||
"lookup": { | "lookup": { | ||||
<#list filter.lookup as k, v> | |||||
"${k}": "${v}" <#if k_has_next>,</#if> | |||||
</#list> | |||||
<#list filter.lookup as k, v> | |||||
<#if v?is_enumerable> | |||||
"${k}": [ | |||||
<#list v as v1> | |||||
{ | |||||
<#list v1 as vk1, vv1> | |||||
"${vk1}": "${vv1}"<#if vk1_has_next>,</#if> | |||||
</#list> | |||||
} | |||||
<#if v1_has_next>,</#if> | |||||
</#list> | |||||
] | |||||
<#else> | |||||
"${k}": "${v}" | |||||
</#if> | |||||
<#if k_has_next>,</#if> | |||||
</#list> | |||||
}, | }, | ||||
</#if> | </#if> | ||||
"name": "${filter.name}" | "name": "${filter.name}" | ||||
@@ -307,7 +307,21 @@ | |||||
<#if fields.lookup??> | <#if fields.lookup??> | ||||
"lookup": { | "lookup": { | ||||
<#list fields.lookup as k, v> | <#list fields.lookup as k, v> | ||||
"${k}": "${v}" <#if k_has_next>,</#if> | |||||
<#if v?is_enumerable> | |||||
"${k}": [ | |||||
<#list v as v1> | |||||
{ | |||||
<#list v1 as vk1, vv1> | |||||
"${vk1}": "${vv1}"<#if vk1_has_next>,</#if> | |||||
</#list> | |||||
} | |||||
<#if v1_has_next>,</#if> | |||||
</#list> | |||||
] | |||||
<#else> | |||||
"${k}": "${v}" | |||||
</#if> | |||||
<#if k_has_next>,</#if> | |||||
</#list> | </#list> | ||||
}, | }, | ||||
</#if> | </#if> | ||||