<# data = _.defaults( data, { id: '', label: '', description: '', input_attrs: {}, choices: {} }); var saveAs = 'url'; if ( ! _.isUndefined( data.choices.save_as ) ) { saveAs = data.choices.save_as; } url = data.value; if ( _.isObject( data.value ) && ! _.isUndefined( data.value.url ) ) { url = data.value.url; } data.choices.labels = _.isObject( data.choices.labels ) ? data.choices.labels : {}; data.choices.labels = _.defaults( data.choices.labels, { select: '', change: '', 'default': '', remove: '', placeholder: '', frame_title: '', frame_button: '', } ); #>
<# if ( data.value['url'] || '' !== url ) { #>
<# } else { #>
{{ data.choices.labels.placeholder }}
<# } #>
<# if ( data.default && '' !== data.default ) { #> <# } #>