{% extends "settings_base.html" %}

{% block dash-title %}

		<b>{{form.text.value|default:"Busquedas Realizadas"|capfirst}}</b>
		[{{form.startDate.value}}, {{form.endDate.value}}]
{% 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>
    $(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 %}

