Merge pull request #4106 from solgenomics/topic/wishlist
[sgn.git] / mason / stock / trials.mas
blobe662d7d1f01a84fe88a1610b30de08d5c28644cd
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="trial_summary_data">
9 <thead>
10   <tr>
11     <th>Trial name</th>
12     <th>Location</th>
13     <th>Details</th>
14   </tr>
15 </thead>
17 </table>
19 <& /util/import_css.mas, paths => ['/documents/inc/datatables/jquery.dataTables.css'] &>
21 <script>
23     jQuery(document).ready(function () {
24         jQuery('#stock_trials_section_onswitch').click(function(){
25             jQuery('#trial_summary_data').DataTable( {
26                 'destroy': true,
27                 'ajax': '/stock/'+ <% $stock_id %> + '/datatables/trials',
28             });
29         });
30     });
32 </script>