refactoring
[sgn.git] / mason / transformation / obsoleted_transformants_section.mas
blob0760d5aeb84e248cfc9536d48b6cba29e12f072c
1 <%args>
2 $transformation_id
3 $transformation_name
4 </%args>
6 <&| /page/info_section.mas, title => 'Obsoleted Transformants (Accessions)', collapsible=>1, collapsed=>0 &>
7     <div class = "well well-sm">
8         <div class = "panel panel-default">
9             <div class = "panel-body">
10                 <div style="overflow:scroll">
11                     <table class="table table-hover table-bordered" id="obsoleted_transformants_table">
12                     </table>
13                 </div>
14             </div>
15         </div>
16     </div>
17 </&>
19 <script>
21 jQuery(document).ready(function(){
23     const transformation_stock_id = "<%$transformation_id%>";
25     const obsoleted_transformants_table = jQuery('#obsoleted_transformants_table').DataTable({
26         'ajax': '/ajax/transformation/obsoleted_transformants/'+transformation_stock_id,
27         'autoWidth': false,
28         columns: [
29             { title: "Accession", "data": null, "render": function ( data, type, row ) { return "<a href='/stock/"+row.transformant_id+"/view'>"+row.transformant_name+"</a>"; } },
30         ],
31     });
33 });
35 </script>