{% load i18n %}

<style>

    .inventory-tt .g{
        color:green;
        margin-right:10px;
    }
</style>

<script type="text/javascript">    
    $(document).ready(function(){    
        
        var table=$('#tb-dlg').DataTable({
            dom: 'Bfrtip',
            autoWidth: false,
            buttons: [{extend:'excelHtml5',text:'导出到Excel'}],           
            language:lng,            
            destroy:true,
            data:{{data.labels|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 class='inventory-tt'>
    <span>垛标编号:<span class='g'>{{data.code}}</span></span>   
    <span>产品名称:<span class='g'>{{data.product.name}}</span></span>   
    <span>所在仓库:<span class='g'>{{data.store.name}}</span></span>
    <span>具体位置:<span class='g'>{{data.location}}</span></span>
    <span>备注说明:<span class='g'>{{data.remark}}</span></span>
    

</div>
<div class="clearfix"></div>


<div id="inventory-list" class="table-responsive">   
    <table id="tb-dlg" class="table table-striped table-bordered dt-responsive" width="100%">
        <thead>
            <th style='width:15%;'>{% trans "标签号码" %}</th>
            <th style='width:15%;'>{% trans "标签类型" %}</th>
            <th style='width:40%;'>{% trans "产品名称" %}</th>   
            <th style='width:25%;'>{% trans "入库时间" %}</th>
        </thead><tbody></tbody>
        <tfoot>
            <th><input  type="text" placeholder="标签号码"></th>
            <th><input  type="text" placeholder="标签类型"></th>
            <th><input  type="text" placeholder="产品名称"></th>        
            <th><input  type="text" placeholder="入库时间"></th>  
        </tfoot>
    
    </table>       
</div>



