${ 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' }.collectEntries { [ (it.getAttribute('var')) : ['align' : it.getAttribute('align')] ] }; %>
<% if (formField.getAttribute("label") != null) { %>
<%= formField.getAttribute("label") %>
<% } %> <% formField.getChildren().each { %><% } %> <% } else if (formField.getName() == 'item' ) { %> <% formField.getChildren().findAll { it.getName() == 'field' }.each { def align = table[it.getAttribute('var')]?.align; def style = ""; if (align) { style += "text-align: " + align + ";"; } %> <% } %> <% } else if (formField.getName() == 'field') { %> <% if (table != null) { table = null; %>
${ it.getAttribute("label") ?: it.getAttribute("var") }
${ it.getChildAttribute('value', 'label') ?: it.getChildCData('field/value') ?: '' }
<% } %> <% def type = formField.getAttribute('type') ?: 'text-single'; if (type == 'hidden') { %>
<% } else if (type == 'boolean') { %>
<% String desc = formField.getChildCData("field/desc"); if (desc != null) { %> ${desc} <% } %>
<% } else if (type == 'text-private') { %>
<% String desc = formField.getChildCData("field/desc"); if (desc != null) { %> ${desc} <% } %>
<% } else if (type == 'text-multi' || type == 'jid-multi') { %>
<% String desc = formField.getChildCData("field/desc"); if (desc != null) { %> ${desc} <% } %>
<% } else if (type == 'list-single' || type == 'list-multi') { %>
<% String desc = formField.getChildCData("field/desc"); if (desc != null) { %> ${desc} <% } %>
<% } else if (type == 'text-single' || type == 'jid-single') { %> <% def subtype = formField.getAttribute('subtype'); if ('datetime' == subtype) { def valueDate = new tigase.util.datetime.TimestampHelper().parseTimestamp(formField.getChildCData('field/value')); def value = valueDate == null ? null : java.time.LocalDateTime.ofInstant(valueDate.toInstant(), java.time.ZoneId.systemDefault()); %>
<% String desc = formField.getChildCData("field/desc"); if (desc != null) { %> ${desc} <% } %>
<% } else { %>
<% } %> <% } else if (type == 'fixed') { %>
<% String desc = formField.getChildCData("field/desc"); if (desc != null) { %> ${desc} <% } %>
<% } %> <% } %> <% } %> <% if (table != null) { table = null; %>
<% } %>
<% } else { %>

First steps

  • Main configuration categories are located on the left.
  • After expanding them you can see a list of items from the group.
  • Each item has name (upper line) and associated component (lower line).
  • For more details please refer to the documentation included in the distribution archive or online
<% } %>