<# var choice = option_value, index = 0, values = 'object' === typeof param.choices ? param.choices : param.value, fieldId = 'undefined' === typeof param.param_name ? param.id : param.param_name, colors = [ 'Red', 'Light Red', 'Blue', 'Light Blue', 'Green', 'Dark Green', 'Orange', 'Pink', 'Brown', 'Light Grey']; #>
<# _.each( values, function( src, value ) { #> <# index++; #> <# var selected = ( value == choice && 'color_scheme' !== fieldId && 'scheme_type' !== fieldId ) ? ' ui-state-active' : ''; #> <# var width = ( '' !== param.width ) ? param.width : '32px'; #> <# var height = ( '' !== param.height ) ? param.height : '32px'; #> <# src = src.image ? src.image : src; #> <# var alt = src.label ? src.label : ''; #> {{ alt }} <# if ( 'color_scheme' === fieldId && ! _.contains( colors, value ) ) { #> {{ value }} <# } #> <# } ); #>