<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>LongWave - Dashboard</title>

    <!-- Bootstrap Core CSS -->
    <link href="/bootstrap_vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="/bootstrap_vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- DataTables CSS -->
    <link href="/bootstrap_vendor/datatables-plugins/dataTables.bootstrap.css" rel="stylesheet">

    <!-- DataTables Responsive CSS -->
    <link href="/bootstrap_vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="/bootstrap_vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="/regionalDashboard">LongWave Viewer v0.5</a>
            </div>
            <!-- /.navbar-header -->

            <ul class="nav navbar-top-links navbar-right">
                <!-- /.dropdown -->
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="/logout"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
            <!-- /.navbar-top-links -->
        </nav>

        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">Dashboard</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Data Records
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>Patient ID</th>
                                        <th>Date Recieved</th>
                                        <th>Actions</th>
                                    </tr>
                                </thead>
                                <tbody>
                                  {% for record in record_list %}
                                  <tr class="gradeA odd" role="row">
                                        <td class="sorting_1">{{record.patientName}}</td>
                                        <td>{{record.date}}</td>
                                        <td>
                                          <form id="tool_button" class="form-group" action="/viewData" method="get" style="margin-right:10px;float:left">
                                            <input type="hidden" value="{{record.key.urlsafe()}}" name="url_key">
                                            <input class="btn btn-success btn-xs" type="submit" value="View Screening Results">
                                          </form>
                                          <form id="tool_button" class="form-group" action="/removerecord" method="post" style="float:left; margin-right:10px">
                                            <input type="hidden" value="{{record.key.urlsafe()}}" name="url_key">
                                            <input class="btn btn-warning btn-xs" type="submit" value="Remove">
                                          </form>
                                          {% if record.afib_flag %}
                                          <p style="color:red;margin-left:20px"><span class="	glyphicon glyphicon-exclamation-sign"></span><b> AFIB</b></p>
                                          {% endif %}
                                        </td>
                                  </tr>
                                  {% endfor %}
                                </tbody>
                            </table>
                            <!-- /.table-responsive -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="/bootstrap_vendor/jquery/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="/bootstrap_vendor/bootstrap/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="/bootstrap_vendor/metisMenu/metisMenu.min.js"></script>

    <!-- DataTables JavaScript -->
    <script src="/bootstrap_vendor/datatables/js/jquery.dataTables.min.js"></script>
    <script src="/bootstrap_vendor/datatables-plugins/dataTables.bootstrap.min.js"></script>
    <script src="/bootstrap_vendor/datatables-responsive/dataTables.responsive.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="/js/sb-admin-2.js"></script>

    <!-- Page-Level Demo Scripts - Tables - Use for reference -->
    <script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
            responsive: true
        });
    });
    </script>

    <!-- Flot Charts JavaScript -->
    <script src="/bootstrap_vendor/flot/excanvas.min.js"></script>
    <script src="/bootstrap_vendor/flot/jquery.flot.js"></script>
    <script src="/bootstrap_vendor/flot/jquery.flot.pie.js"></script>
    <script src="/bootstrap_vendor/flot/jquery.flot.resize.js"></script>
    <script src="/bootstrap_vendor/flot/jquery.flot.time.js"></script>
    <script src="/bootstrap_vendor/flot-tooltip/jquery.flot.tooltip.min.js"></script>
    <!--<script src="/rsrc/flot-data.js"></script>-->

    <!-- Custom Theme JavaScript -->
    <script src="/js/sb-admin-2.js"></script>

    <meta id="sampleData"  data-datapoints="{{sample}}">

</body>

</html>
