aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2015-07-07 20:16:39 +0000
committerzsloan2015-07-07 20:16:39 +0000
commit2498e09f226a8fe936e9e5c2a0e788fee3541b4b (patch)
tree45e3a397b23fcdffc1fcd65b94a9f3acaa360fc1
parente5cd03134e1f1ea39b9703c37e789ddc22f5b8c6 (diff)
downloadgenenetwork2-2498e09f226a8fe936e9e5c2a0e788fee3541b4b.tar.gz
Also added index column to collections
-rwxr-xr-xwqflask/wqflask/templates/collections/list.html2
-rwxr-xr-xwqflask/wqflask/templates/collections/view.html4
2 files changed, 4 insertions, 2 deletions
diff --git a/wqflask/wqflask/templates/collections/list.html b/wqflask/wqflask/templates/collections/list.html
index 354723d0..f14c0921 100755
--- a/wqflask/wqflask/templates/collections/list.html
+++ b/wqflask/wqflask/templates/collections/list.html
@@ -15,6 +15,7 @@
<table class="table table-hover" id='trait_table'>
<thead>
<tr>
+ <th>Index</th>
<th>Name</th>
<th>Created</th>
<th>Last Changed</th>
@@ -25,6 +26,7 @@
<tbody>
{% for uc in user_collections %}
<tr class="collection_line">
+ <td>{{ loop.index }}
<td><a class="collection_name" href="{{ url_for('view_collection', uc_id=uc.id) }}">{{ uc.name }}</a></td>
<td>{{ timeago(uc.created_timestamp.isoformat() + "Z") }}</td>
<td>{{ timeago(uc.changed_timestamp.isoformat() + "Z") }}</td>
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html
index e41ade7c..053861ae 100755
--- a/wqflask/wqflask/templates/collections/view.html
+++ b/wqflask/wqflask/templates/collections/view.html
@@ -67,7 +67,7 @@
<table class="table table-hover table-striped" id='trait_table'>
<thead>
<tr>
- <th></th>
+ <th>Index</th>
<th>Record</th>
<th>Description</th>
<th>Location</th>
@@ -81,7 +81,7 @@
<tbody>
{% for this_trait in trait_obs %}
<TR id="trait:{{ this_trait.name }}:{{ this_trait.dataset.name }}">
- <TD>
+ <TD>{{ loop.index }}
<INPUT TYPE="checkbox" NAME="searchResult" class="checkbox trait_checkbox"
VALUE="{{ data_hmac('{}:{}'.format(this_trait.name, this_trait.dataset.name)) }}">
</TD>