Merge pull request #5191 from solgenomics/topic/quality_control
[sgn.git] / mason / stock / traits.mas
blobb3458dde9c186b84615e1e6d6c78233c9e046ce0
2 <%args>
3 $stock_id
4 </%args>
6 <!-- & /util/import_javascript.mas, classes => [ 'jquery', 'jquery.dataTables' ] & -->
8 <table class="table table-hover table-bordered" id="traitlist_summary_data" >
9 <thead>
10   <tr>
11     <th>Trait ID</th>
12     <th>Trait name</th>
13     <th>Average Value</th>
14     <th>Standard deviation</th>
15     <th>Count</th>
16   </tr>
17 </thead>
19 </table>
21 <!-- link rel="stylesheet" type="text/css" href="/documents/inc/datatables/jquery.dataTables.css" -->
23 <script>
25     jQuery(document).ready(function () {
26         jQuery('#stock_traits_section_onswitch').click(function(){
27             jQuery('#traitlist_summary_data').DataTable( {
28                 'destroy':true,
29                 'ajax': '/stock/'+ <% $stock_id %> + '/datatables/traitlist',
30             });
31         });
32     });
34 </script>