${ util["inlineCss"].apply('bootstrap.min.css') } ${ util["inlineCss"].apply('custom.css') } ${ util["inlineCss"].apply('http-api-custom.css') }
<% if (model.formFields) { %> <% def table = null; %>
<% def title = model.formFields?.find { it.getName() == 'title' }?.getCData(); if (title != null) { %>

${title}

<% } %>
<% instructions = model.formFields?.find { it.getName() == 'instructions' }?.getCData(); if (instructions != null) { %>
${instructions}
<% } %> <% if (1==0) { %>
<% } %> <% model.formFields?.findAll { it.getName() != 'title' && it.getName() != 'instructions' }.each { formField -> %> <% if (formField.getName() == 'reported') { if (table != null) { table = null; %><% } table = formField.getChildren().findAll { it.getName() == 'field' }.collect { it.getAttribute("var") }; %> <% formField.getChildren().each { %><% } %> <% } else if (formField.getName() == 'item' ) { %> <% formField.getChildren().findAll { it.getName() == 'field' }.each { %> <% } %> <% } else if (formField.getName() == 'field') { %> <% if (table != null) { table = null; %>
${ it.getAttribute("label") ?: it.getAttribute("var") }
${ it.getChildCData('field/value') ?: '' }
<% } %> <% def type = formField.getAttribute('type') ?: 'text-single'; if (type == 'hidden') { %>
<% } else if (type == 'boolean') { %>
<% } else if (type == 'text-private') { %>
<% } else if (type == 'text-multi' || type == 'jid-multi') { %>
<% } else if (type == 'list-single' || type == 'list-multi') { %>
<% } else if (type == 'text-single' || type == 'jid-single') { %>
<% } else if (type == 'fixed') { %>
<% } %> <% } %> <% } %> <% if (table != null) { table = null; %><% } %>
<% } %>