aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>