{% load i18n %}



<script type="text/javascript">    
    $(document).ready(function(){   
        var table=$('#tb-dlg').DataTable({
            dom: 'Bfrtip',
            autoWidth: true,
            buttons: [{extend:'excelHtml5',text:'导出到Excel'}],           
            language:lng,            
            destroy:true,
            data:{{data|safe}}
        });    
        table.columns().every( function () {                        
            var that = this;             
            $('input', this.footer() ).on( 'keyup change clear', function () {
                if ( that.search() !== this.value ) {
                    that.search( this.value ).draw();
                }
            });
        });  
    });    
</script>
<div style='margin-bottom:20px;'>
     <span style='color:green;font-weight:bold;margin-right:10px;'>{{batch.product}}</span>
    <span style='color:green;font-weight:bold;margin-right:10px;'>{{batch.customer}}</span>   
    <span style='color:green;font-weight:bold;margin-right:10px;'>{{batch.marking}}</span>

</div>

<div id="sales_order_view" class="table-responsive" style="width:100%">
    <table id="tb-dlg" class="table table-striped table-bordered dt-responsive">
        <thead>
            {% for c in clmns %}
                <th>{{c}}</th>
            {% endfor %}
        </thead>
        <tbody></tbody>   
        <tfoot>
            {% for c in clmns %}                   
                <th><input type="text" placeholder="{{c}}"></th>                    
            {% endfor %}            
        </tfoot>
    </table>       
</div>



