aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/templates
diff options
context:
space:
mode:
authorzsloan2015-05-12 16:06:11 -0500
committerzsloan2015-05-12 16:06:11 -0500
commit164aaec2dc30aa6e7a060b21ff2480a5bf8b7ff4 (patch)
treed5a126941e7bd0ae8fed3b39be542def1b721c7f /wqflask/wqflask/templates
parenta544231453be26339d9b1c45888f1e7fffa1ca2e (diff)
parentd11b71790f5f7c7eb9fe41704e1df7d8447371c9 (diff)
downloadgenenetwork2-164aaec2dc30aa6e7a060b21ff2480a5bf8b7ff4.tar.gz
Merge pull request #24 from lyan6/master
Committer: Lei Yan <lei@penguin.uthsc.edu>
Diffstat (limited to 'wqflask/wqflask/templates')
-rwxr-xr-xwqflask/wqflask/templates/gsearch.html63
-rwxr-xr-xwqflask/wqflask/templates/gsearch2.html55
-rwxr-xr-xwqflask/wqflask/templates/gsearchact.html113
-rwxr-xr-xwqflask/wqflask/templates/gsearchact2.html114
4 files changed, 345 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/gsearch.html b/wqflask/wqflask/templates/gsearch.html
new file mode 100755
index 00000000..28301515
--- /dev/null
+++ b/wqflask/wqflask/templates/gsearch.html
@@ -0,0 +1,63 @@
+{% extends "base.html" %}
+{% block title %}GeneNetwork{% endblock %}
+{% block content %}
+<!-- Start of body -->
+
+ <div class="container-fluid">
+
+ {{ flash_me() }}
+
+ <div class="row" style="width: 1200px !important;">
+
+ <div class="col-xs-5 col-xs-5">
+ <section id="search">
+ <div class="page-header">
+ <h1>Global Search</h1>
+ </div>
+ <form method="get" action="/gsearchact" name="SEARCHFORM">
+ <fieldset>
+ <div style="padding: 20px" class="form-horizontal">
+
+ <div class="form-group">
+ <label for="species" class="col-xs-1 control-label" style="width: 65px !important;">Species:</label>
+ <div class="col-xs-4 controls">
+ <select name="species" id="species" class="form-control selectpicker span3" style="width: 300px !important;"></select>
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label for="group" class="col-xs-1 control-label" style="width: 65px !important;">Group:</label>
+ <div class="col-xs-4 controls input-append">
+ <select name="group" id="group" class="form-control selectpicker span3" style="width: 300px !important;"></select>
+ <i class="icon-question-sign"></i>
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label for="tfor" class="col-xs-1 control-label" style="width: 65px !important;">Search:</label>
+ <div class="col-xs-10 controls">
+ <textarea name="terms" rows="2" class="form-control search-query" style="width: 450px !important;" id="tfor"></textarea>
+ </div>
+ </div>
+
+ <!-- SEARCH, MAKE DEFAULT, ADVANCED SEARCH -->
+
+ <div class="form-group">
+
+ <div class="col-xs-3 controls" style="width: 100px !important;">
+ <input id="btsearch" type="submit" class="btn btn-primary form-control" value="Search">
+ </div>
+ </div>
+ </div>
+ </fieldset>
+ </form>
+ </section>
+ </div>
+ </div>
+ </div>
+
+{%endblock%}
+
+{% block js %}
+ <script src="/static/new/javascript/dataset_select_menu.js"></script>
+{% endblock %} \ No newline at end of file
diff --git a/wqflask/wqflask/templates/gsearch2.html b/wqflask/wqflask/templates/gsearch2.html
new file mode 100755
index 00000000..430bf889
--- /dev/null
+++ b/wqflask/wqflask/templates/gsearch2.html
@@ -0,0 +1,55 @@
+{% extends "base.html" %}
+{% block title %}GeneNetwork{% endblock %}
+{% block content %}
+<!-- Start of body -->
+
+ <div class="container-fluid">
+
+ {{ flash_me() }}
+
+ <div class="row" style="width: 1200px !important;">
+
+ <div class="col-xs-5 col-xs-5">
+ <section id="search">
+ <div class="page-header">
+ <h1>Global Search</h1>
+ </div>
+ <form method="get" action="/gsearchact2" name="SEARCHFORM">
+ <fieldset>
+ <div style="padding: 20px" class="form-horizontal">
+
+ <div class="form-group">
+ <label for="species" class="col-xs-1 control-label" style="width: 65px !important;">Species:</label>
+ <div class="col-xs-4 controls">
+ <select name="species" id="species" class="form-control selectpicker span3" style="width: 300px !important;"></select>
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label for="tfor" class="col-xs-1 control-label" style="width: 65px !important;">Search:</label>
+ <div class="col-xs-10 controls">
+ <textarea name="terms" rows="2" class="form-control search-query" style="width: 450px !important;" id="tfor"></textarea>
+ </div>
+ </div>
+
+ <!-- SEARCH, MAKE DEFAULT, ADVANCED SEARCH -->
+
+ <div class="form-group">
+
+ <div class="col-xs-3 controls" style="width: 100px !important;">
+ <input id="btsearch" type="submit" class="btn btn-primary form-control" value="Search">
+ </div>
+ </div>
+ </div>
+ </fieldset>
+ </form>
+ </section>
+ </div>
+ </div>
+ </div>
+
+{%endblock%}
+
+{% block js %}
+ <script src="/static/new/javascript/dataset_select_menu.js"></script>
+{% endblock %} \ No newline at end of file
diff --git a/wqflask/wqflask/templates/gsearchact.html b/wqflask/wqflask/templates/gsearchact.html
new file mode 100755
index 00000000..57fe25b5
--- /dev/null
+++ b/wqflask/wqflask/templates/gsearchact.html
@@ -0,0 +1,113 @@
+{% extends "base.html" %}
+{% block title %}Search Results{% endblock %}
+{% block css %}
+ <link rel="stylesheet" type="text/css" href="/static/new/packages/DataTables/css/jquery.dataTables.css" />
+ <link rel="stylesheet" type="text/css" href="/static/packages/DT_bootstrap/DT_bootstrap.css" />
+ <link rel="stylesheet" type="text/css" href="/static/packages/TableTools/media/css/TableTools.css" />
+{% endblock %}
+{% block content %}
+<!-- Start of body -->
+
+ <div class="container">
+
+ <p>To study a record, click on its ID below.<br />Check records below and click Add button to add to selection.</p>
+
+ <div>
+ <br />
+ <button class="btn btn-default" id="select_all"><span class="glyphicon glyphicon-ok"></span> Select All</button>
+ <button class="btn btn-default" id="deselect_all"><span class="glyphicon glyphicon-remove"></span> Deselect All</button>
+ <button class="btn btn-default" id="invert"><span class="glyphicon glyphicon-resize-vertical"></span> Invert</button>
+ <button class="btn btn-default" id="add"><span class="glyphicon glyphicon-plus-sign"></span> Add</button>
+ <button class="btn btn-primary pull-right"><span class="glyphicon glyphicon-download"></span> Download Table</button>
+ <br />
+ <br />
+ <table class="table table-hover table-striped" id='' style="width: 100%;">
+ <thead>
+ <tr>
+ <th>Tissue</th>
+ <th>Dataset</th>
+ <th>Record</th>
+ <th>Symbol</th>
+ <th>Description</th>
+ <th>Chr</th>
+ <th>Mb</th>
+ <th>Mean</th>
+ <th>Max LRS</th>
+ <th>Locus</th>
+ <th>Pvalue</th>
+ <th>Additive</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ {% for this_trait in results %}
+ <TR>
+ {% for item in this_trait[1:] %}
+ <TD>{{ item }}</TD>
+ {% endfor %}
+ </TR>
+ {% endfor %}
+ </tbody>
+
+ </table>
+ </div>
+ </div>
+
+<!-- End of body -->
+
+{% endblock %}
+
+{% block js %}
+ <script type="text/javascript" src="/static/new/javascript/search_results.js"></script>
+
+ <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/jquery.dataTables.min.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/dataTables.naturalSort.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/packages/DT_bootstrap/DT_bootstrap.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/packages/TableTools/media/js/TableTools.min.js"></script>
+ <script type="text/javascript" charset="utf-8">
+ function getValue(x) {
+ if (x.indexOf('input') >= 0) {
+ if ($(x).val() == 'x') {
+ return 0
+ }
+ else {
+ return parseFloat($(x).val());
+ }
+ }
+ return parseFloat(x);
+ }
+
+ jQuery.fn.dataTableExt.oSort['cust-txt-asc'] = function (a, b) {
+ var x = getValue(a);
+ var y = getValue(b);
+ return ((x < y) ? -1 : ((x > y) ? 1 : 0));
+ };
+
+ jQuery.fn.dataTableExt.oSort['cust-txt-desc'] = function (a, b) {
+ var x = getValue(a);
+ var y = getValue(b);
+ return ((x < y) ? 1 : ((x > y) ? -1 : 0));
+ };
+
+
+ $(document).ready( function () {
+
+ /*num_columns = $('#trait_table').find('tr:first th').length;
+
+ nul_cols = []
+ for (i=0; i<num_columns - 1, i++) {
+ $('#trait_table > tbody > tr').each(function() {
+ if ($(this).find('td:eq(i)').html()){
+ continue;
+ }
+ });
+ nul_cols.push(i)
+ }*/
+
+ console.time("Creating table");
+ console.timeEnd("Creating table");
+ });
+
+ </script>
+
+{% endblock %}
diff --git a/wqflask/wqflask/templates/gsearchact2.html b/wqflask/wqflask/templates/gsearchact2.html
new file mode 100755
index 00000000..d99bfadc
--- /dev/null
+++ b/wqflask/wqflask/templates/gsearchact2.html
@@ -0,0 +1,114 @@
+{% extends "base.html" %}
+{% block title %}Search Results{% endblock %}
+{% block css %}
+ <link rel="stylesheet" type="text/css" href="/static/new/packages/DataTables/css/jquery.dataTables.css" />
+ <link rel="stylesheet" type="text/css" href="/static/packages/DT_bootstrap/DT_bootstrap.css" />
+ <link rel="stylesheet" type="text/css" href="/static/packages/TableTools/media/css/TableTools.css" />
+{% endblock %}
+{% block content %}
+<!-- Start of body -->
+
+ <div class="container">
+
+ <p>To study a record, click on its ID below.<br />Check records below and click Add button to add to selection.</p>
+
+ <div>
+ <br />
+ <button class="btn btn-default" id="select_all"><span class="glyphicon glyphicon-ok"></span> Select All</button>
+ <button class="btn btn-default" id="deselect_all"><span class="glyphicon glyphicon-remove"></span> Deselect All</button>
+ <button class="btn btn-default" id="invert"><span class="glyphicon glyphicon-resize-vertical"></span> Invert</button>
+ <button class="btn btn-default" id="add"><span class="glyphicon glyphicon-plus-sign"></span> Add</button>
+ <button class="btn btn-primary pull-right"><span class="glyphicon glyphicon-download"></span> Download Table</button>
+ <br />
+ <br />
+ <table class="table table-hover table-striped" id='' style="width: 100%;">
+ <thead>
+ <tr>
+ <th>Group</th>
+ <th>Tissue</th>
+ <th>Dataset</th>
+ <th>Record</th>
+ <th>Symbol</th>
+ <th>Description</th>
+ <th>Chr</th>
+ <th>Mb</th>
+ <th>Mean</th>
+ <th>Max LRS</th>
+ <th>Locus</th>
+ <th>Pvalue</th>
+ <th>Additive</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ {% for this_trait in results %}
+ <TR>
+ {% for item in this_trait[1:] %}
+ <TD>{{ item }}</TD>
+ {% endfor %}
+ </TR>
+ {% endfor %}
+ </tbody>
+
+ </table>
+ </div>
+ </div>
+
+<!-- End of body -->
+
+{% endblock %}
+
+{% block js %}
+ <script type="text/javascript" src="/static/new/javascript/search_results.js"></script>
+
+ <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/jquery.dataTables.min.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/dataTables.naturalSort.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/packages/DT_bootstrap/DT_bootstrap.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/packages/TableTools/media/js/TableTools.min.js"></script>
+ <script type="text/javascript" charset="utf-8">
+ function getValue(x) {
+ if (x.indexOf('input') >= 0) {
+ if ($(x).val() == 'x') {
+ return 0
+ }
+ else {
+ return parseFloat($(x).val());
+ }
+ }
+ return parseFloat(x);
+ }
+
+ jQuery.fn.dataTableExt.oSort['cust-txt-asc'] = function (a, b) {
+ var x = getValue(a);
+ var y = getValue(b);
+ return ((x < y) ? -1 : ((x > y) ? 1 : 0));
+ };
+
+ jQuery.fn.dataTableExt.oSort['cust-txt-desc'] = function (a, b) {
+ var x = getValue(a);
+ var y = getValue(b);
+ return ((x < y) ? 1 : ((x > y) ? -1 : 0));
+ };
+
+
+ $(document).ready( function () {
+
+ /*num_columns = $('#trait_table').find('tr:first th').length;
+
+ nul_cols = []
+ for (i=0; i<num_columns - 1, i++) {
+ $('#trait_table > tbody > tr').each(function() {
+ if ($(this).find('td:eq(i)').html()){
+ continue;
+ }
+ });
+ nul_cols.push(i)
+ }*/
+
+ console.time("Creating table");
+ console.timeEnd("Creating table");
+ });
+
+ </script>
+
+{% endblock %}