
<script type="text/javascript">
    $(document).ready(function(){
        var table=$('#tb-position').DataTable({            
            dom: 'Bfrtip',
            autoWidth: false,
            buttons: [{extend:'excelHtml5',text:'导出到Excel'}],           
            language:lng,           
            data:{{data|safe}},
            destroy:true,
        });      
        
        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>


<style>
  
   
</style>


<div id='list-tt' style='margin-bottom:10px;' current='{{url}}'>岗位职务列表
<a class='btn btn-default btn-primary btn-add btn-xs' tt='岗位职务' href="/company/orginazition/edit/position/">添加</a>
</div>
<table id="tb-position" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%"> 
    <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>

