{{#unless hide_label}}
{{label}}{{#if required}} *{{/if}}{{/unless}}
{{#if config/showval}}
{{else}}
{{/if}}
{{#if config/showval}}
{{config/prefix}}{{config/default}}{{config/suffix}}
{{/if}}
{{caption}}
{{#script}}
var rangeslide{{id}} = jQuery('#{{id}}_rangeslider').rangeslider({
onSlide: function(position, value) {
jQuery('#{{id}}_value').html(value);
},
polyfill: {{#if config/pollyfill}}true{{else}}false{{/if}}
});
rangeslide{{id}}.parent().find('.rangeslider').css('backgroundColor', rangeslide{{id}}.data('trackcolor'));
rangeslide{{id}}.parent().find('.rangeslider__fill').css('backgroundColor', rangeslide{{id}}.data('color'));
rangeslide{{id}}.parent().find('.rangeslider__handle').css('backgroundColor', rangeslide{{id}}.data('handle'));
rangeslide{{id}}.parent().find('.rangeslider__handle').css('borderColor', rangeslide{{id}}.data('handleborder'));
{{/script}}