<div class="modal" tabindex="-1" role="dialog" aria-labelledby="" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <form class="form-horizontal" action="" method="post" id="zone_form">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">{$MGLANG->T('close')}</span></button>
                    <h4 class="modal-title">{$MGLANG->T('set_dns_record_set')}</h4>
                </div>
                <div class="modal-body">
                            <div class="form-group">
                                <label class="control-label col-sm-3">{$MGLANG->T('select_record_set')}</label>
                                <div class="col-sm-7">
                                    <select class="select2" name="recordSet">
                                        {foreach from=$sets item="aset"}
                                            <option value="{$aset->id}">{$aset->name}</option>
                                        {/foreach}
                                    </select> 
                                </div>      
                            </div>   
                            <div class="form-group">
                                <label for="wR" class="control-label col-sm-3">{$MGLANG->T('wipe_records')}</label>
                                <div class="col-sm-7" id="test">
                                    <div class="checkbox">
                                        <input class="sel" id="wR" type="checkbox" name="wipeRecords" value=""/>
                                    </div> 
                                </div>      
                            </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default btn-inverse" data-dismiss="modal">{$MGLANG->T('cancel')}</button>   
                    <button class="btn btn-primary btn-inverse" type="button" data-formid="zonelist" id="setRecordsDNS" data-dt="1" data-act="setRecordsSave">{$MGLANG->T('set_dns_record_set')}</button>
                </div>
            </form>
        </div>
    </div>
</div>
                
{literal}
    <script data-cfasync="false" type="text/javascript">    
        jQuery('#setRecordsDNS').click(function(){
            var set = jQuery('select[name="recordSet"]').val();
            $('input[name="setRecord"]').val(set);
        });
        jQuery('#wR').change(function(){
            if(this.checked)
            {
                jQuery('input[name="wipe"]').val(true);
            }
            else
            {
                jQuery('input[name="wipe"]').val(false);
            }
        });
    </script>
{/literal}