<# 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 param.icons ? param.icons : ''; #>
<# var choice = option_value, index = 0; #> <# _.each( choices, function( name, value ) { #> <# index++; var selected = ( 1 === index ) ? ' ui-state-active' : '', icon = ( 'undefined' !== typeof icons[ value ] && '' !== icons ) ? icons[ value ] : '', title = name, iconClass = '' === icon ? '' : 'has-tooltip'; if ( -1 !== icon.indexOf( 'svg' ) || -1 !== icon.indexOf( 'span' ) && 'undefined' !== typeof FusionApp ) { title = icon; } else if ( -1 !== icon.indexOf( 'svg' ) || -1 !== icon.indexOf( 'span' ) && 'undefined' === typeof FusionApp ) { title = icon + name; } else if ( '' !== icon ) { iconClass += ' ' + icon; title = ''; } #> {{{ title }}} <# } ); #>