<# var fieldId = 'undefined' === typeof param.param_name ? param.id : param.param_name, choices = 'undefined' === typeof param.param_name ? param.choices : param.value, icons = ( 'undefined' !== typeof FusionApp || 'undefined' !== typeof param.back_icons && param.back_icons ) && 'undefined' !== typeof param.icons ? param.icons : '', gridLayout = ( 'undefined' !== typeof param.grid_layout && param.grid_layout ) ? true : false, wrapperClass = ''; if ( gridLayout ) { wrapperClass = 'fusion-form-radio-button-set-grid-layout'; } #>
<# var choice = option_value, index = 0; if ( ( 'undefined' === typeof choice || '' === choice ) && 'undefined' !== typeof param.default ) { choice = param.default; } #> <# _.each( choices, function( name, value ) { #> <# index++; let dependencyAtts = ''; if ( typeof name === 'object' && name !== null ) { const dependency = name.dependency; name = name.name; if ( dependency ) { dependencyAtts = []; if ( dependency.element ) { dependencyAtts.push(`data-dependency=${dependency.element}`); } if ( dependency.value ) { dependencyAtts.push(`data-dependency-value=${dependency.value}`); } if ( dependency.operator ) { dependencyAtts.push(`data-dependency-operator=${dependency.operator}`); } dependencyAtts = dependencyAtts.join( ' ' ); } } var selected = ( value == choice ) ? ' ui-state-active' : '', icon = ( 'undefined' !== typeof icons[ value ] && '' !== icons ) ? icons[ value ] : '', title = gridLayout ? '' : name, iconClass = '' === icon ? '' : 'has-tooltip'; if ( '' !== title && -1 !== icon.indexOf( 'span' ) && -1 === icon.indexOf( 'onlyIcon' ) ) { title = icon + '
' + title + '
'; } else if ( -1 !== icon.indexOf( 'svg' ) || -1 !== icon.indexOf( 'span' ) ) { title = icon; } else if ( '' !== icon ) { iconClass += ' ' + icon; title = ''; } #> {{{ title }}} <# } ); #>