Merge branch 'master' of https://github.com/solgenomics/sgn
[sgn.git] / mason / search / trials.mas
blob27874ceb6984eac83482af7e35d2d1e60a17c061
2 <%args>
3 $nd_geolocation => 'not_provided'
4 </%args>
6 <& /util/import_javascript.mas, classes => [ 'jquery', 'jquery.dataTables' ] &>
8 <& /page/page_title.mas, title => "Trial Search" &>
11 <table id="search_results" class="display">
12 <thead>
13   <tr>
14     <th>Trial name</th>
15     <th>Description</th>
16     <th>Breeding program</th>
17     <th>Year</th>
18     <th>Location</th>
19     <th>Trial type</th>
20 </tr>
21 </thead>
23 </table>
25 <link rel="stylesheet" type="text/css" href="/documents/inc/datatables/jquery.dataTables.css">
29 <script>
31 jQuery(document).ready(function () {
33    jQuery('#search_results').DataTable( {
34        'ajax': '/ajax/search/trials?nd_geolocation=<% $nd_geolocation %>'
35    });
37 });
39 </script>