fix test with new description field.
[sgn.git] / mason / breeders_toolbox / program / profile_detail.mas
blobaf97b1f042ef39060ba3f2df6fac8ae0f696d333
1 <%args>
2 $user_id => undef
3 $profile_id
4 $profile_name
5 </%args>
7 <& /util/import_javascript.mas, classes => [ 'jquery', 'jquery.dataTables' ] &>
8 <& /util/import_css.mas, paths => ['/documents/inc/datatables/jquery.dataTables.css'] &>
11 <& /page/page_title.mas, title => "Profile: '$profile_name'" &>
13 <&| /page/info_section.mas, title => 'Details', collapsible=>1, collapsed=>0 &>
14     <div class = "well well-sm">
15         <div class = "panel panel-default">
16             <div class = "panel-body">
17                 <div style="overflow:scroll">
18                     <table id = "profile_detail_table" class="table table-hover table-striped">
19                         <thead>
20                             <tr>
21                                 <th>Trait Name</th>
22                                 <th>Target Value</th>
23                                 <th>Benchmark Variety</th>
24                                 <th>Performance</th>
25                                 <th>Weight</th>
26                                 <th>Trait Type</th>
27                             </tr>
28                         </thead>
29                     </table>
30                 </div>
31             </div>
32         </div>
33     </div>
34  </&>
37 <script>
39 jQuery(document).ready(function () {
41     jQuery('#profile_detail_table').DataTable( {
42         'ajax': '/ajax/breeders/program/profile_detail/'+ <% $profile_id %>,
43         'paging' : false,
44         'searching' : false,
46     });
48 });
51 </script>