META-INF.dirigible.template-form-builder-angularjs.ui.index.html.template Maven / Gradle / Ivy
#foreach($script in $scripts)
#end
#macro(formWidgets $elements)
#foreach($element in $elements)
#if($element.controlId == "header")
$element.title
#elseif($element.controlId == "image")
#if($element.link)
#else
#end
#elseif($element.controlId == "input-textarea")
$element.label
$element.errorState
#elseif($element.controlId == "input-textfield")
$element.label
$element.errorState
#elseif($element.controlId == "input-number")
$element.label
#elseif($element.controlId == "input-checkbox")
$element.label
#elseif($element.controlId == "input-time")
$element.label
#elseif($element.controlId == "input-date")
$element.label
#elseif($element.controlId == "input-color")
$element.label
#elseif($element.controlId == "input-select" && $element.staticData != true)
$element.label
#elseif($element.controlId == "input-select" && $element.staticData)
$element.label
#foreach($option in $element.staticOptions)
#end
#elseif($element.controlId == "input-radio" && $element.staticData != true)
{{option.$element.optionLabel}}
#elseif($element.controlId == "input-radio" && $element.staticData)
#foreach($option in $element.staticOptions)
$option.label
#end
#elseif($element.controlId == "button")
#elseif($element.controlId == "paragraph")
#if($element.model){{ model.$element.model }}#else$element.text#end
#end
#if($element.children)
#formWidgets($element.children)
#end
#end
#end
#formWidgets($form)