<# var atts = "", field = data.field; // Toggle data if ( field.toggle ) { atts += " data-toggle='" + JSON.stringify( field.toggle ) + "'"; } // Hide data if ( field.hide ) { atts += " data-hide='" + JSON.stringify( field.hide ) + "'"; } #>
<# for ( var option in data.field.options ) { var selected = option === data.value ? 1 : 0; #> <# } #>