Changed trials-in-common page to use a single database query to get analyses. Changed...
[sgn.git] / mason / breeders_toolbox / tissue_samples / field_trials_with_tissue_samples.mas
blob4fd5043da18fae41df0ec8d7f6f0903e8b81153d
2 <%args>
3 </%args>
5 <& /util/import_javascript.mas, classes => [ 'jquery', 'jquery.dataTables' ] &>
7 <h4>Field Trials With Tissue Samples</h4>
9 <div class="well well-sm">
10     <div class="panel panel-default">
11         <div class="panel-body">
12             <table id="tissue_sample_trial_search_results" class="table table-hover table-striped">
13                 <thead>
14                     <tr>
15                         <th>Trial name</th>
16                         <th>Description</th>
17                         <th>Breeding program</th>
18                         <th>Folder</th>
19                         <th>Year</th>
20                         <th>Location</th>
21                         <th>Trial type</th>
22                         <th>Design</th>
23                         <th>Planting Date</th>
24                         <th>Harvest Date</th>
25                         <th>Download</th>
26                     </tr>
27                 </thead>
28             </table>
29         </div>
30     </div>
31 </div>
33 <script>
35 jQuery(document).ready(function () {
37    var trial_table = jQuery('#tissue_sample_trial_search_results').DataTable( {
38        'ajax': '/ajax/tissue_samples/field_trials',
39        "scrollX": true
40    });
42 });
44 </script>