Merge pull request #4272 from solgenomics/topic/fix-vcf-download
[sgn.git] / mason / stock / phenotypes.mas
blobf8fe4b8f2de8fac1e70368447a81f88f021f48fc
2 <%args>
3 $stock_id
4 </%args>
6 <& /util/import_javascript.mas, classes => [ 'jquery', 'jquery.dataTables' ] &>
8 <table id="phenotype_summary_data" class="display">
9 <thead>
10   <tr>
11     <th>Trial</th>
12     <th>Trait code</th>
13     <th>Trait</th>
14     <th>Value</th>
15   </tr>
16 </thead>
18 </table>
20 <& /util/import_css.mas, paths => ['/documents/inc/datatables/jquery.dataTables.css'] &>
22 <script>
24   jQuery(document).ready(function () {
25   
26     jQuery('#phenotype_summary_data').DataTable( { 
27       'ajax': '/stock/'+ <% $stock_id %> + '/datatables/traits',
28     });
29   });
32   
33 </script>