about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-02-24 16:11:41 -0600
committerFrederick Muriuki Muriithi2025-02-24 16:34:43 -0600
commit1d83678908835bd0e1b97ec8de5eca404cbcda30 (patch)
tree6b81fa04e54054e1c3b4d12421bf862b1d923616
parent0821ba407adea8df12e2066e37de8b16290f4988 (diff)
downloadgn-uploader-1d83678908835bd0e1b97ec8de5eca404cbcda30.tar.gz
Provide a way to select phenotypes to edit.
-rw-r--r--uploader/templates/phenotypes/view-dataset.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html
index a3456ac..0341cae 100644
--- a/uploader/templates/phenotypes/view-dataset.html
+++ b/uploader/templates/phenotypes/view-dataset.html
@@ -66,6 +66,7 @@
     <thead>
       <tr>
         <th></th>
+        <th>Index</th>
         <th>Record</th>
         <th>Description</th>
       </tr>
@@ -96,6 +97,14 @@
           },
           data: data,
           columns: [
+              {
+                  data: function(pheno) {
+                      return `<input type="checkbox" name="selected-phenotypes" `
+                          + `id="chk-selected-phenotypes-${pheno.InbredSetCode}_${pheno.xref_id}" `
+                          + `value="${pheno.InbredSetCode}_${pheno.xref_id}" `
+                          + `class="chk-row-select" />`
+                  }
+              },
               {data: "sequence_number"},
               {
                   data: function(pheno) {