{% extends "new/settings_base.html" %}

{% block headMedia %}
	<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.18/datatables.min.css"/>
{% endblock %}


{% block dash-title %}

		<b>{{form.text.value|default:"Busquedas Realizadas"|capfirst}}</b>
{% endblock %}


{% block dash %}

            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Busquedas
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">



                            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-search">
                                <thead>
                                    <tr>
                                        <th>Texto</th>
                                        <th>Inicio</th>
					<th>Fin</th>
					<th>Fuentes</th>
                                    </tr>
                                </thead>
                               <tfoot>
                                    <tr>
                                        <th>Texto</th>
                                        <th>Inicio</th>
					<th>Fin</th>
					<th>Fuentes</th>
                                    </tr>
                                </tfoot>

                            </table>
                            <!-- /.table-responsive -->



                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->

{% endblock %}


{% block scripts %}
	<script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.18/datatables.min.js"></script>


    <script>
    $(document).ready(function() {
        $('#dataTables-search').DataTable({
		"order": [[ 2, "desc" ]],
		"responsive": true,
	        "processing": true,
        	"serverSide": true,
                "language": {"url": "/static/languages/Spanish.json" },
		"ajax": {"url":"/catalog/ws/searches/"},
		"data":{}

        });
    });
	//console.log(" {{form.publishers.data|safe}} ");
    </script>

{% endblock %}

