6 <&| /page/info_section.mas, title => 'Transformants (Accessions) Derived from this Transformation ', 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="transformants_table">
14 <div class="panel panel-default">
15 <div class="panel-body">
16 <&| /page/info_section.mas, title => 'Add transformants (accessions) to a List', collapsible=>1, collapsed=>1, subtitle=>'<i>Adding transformants (accessions) to a new or exisiting list</i>'&>
18 <div id="transformant_to_new_list" style="display:none"></div>
19 <div id="transformant_add_to_list"></div>
28 <& /transformation/obsolete_stock_dialog.mas &>
33 jQuery(document).ready(function(){
35 const transformation_stock_id = "<%$transformation_id%>";
36 const transformants_table = jQuery('#transformants_table').DataTable({
37 'ajax': '/ajax/transformation/transformants/'+transformation_stock_id,
40 { title: "Accession", "data": null, "render": function ( data, type, row ) { return "<a href='/stock/"+row.transformant_id+"/view'>"+row.transformant_name+"</a>"; } },
41 { title: "Obsolete Accession", "data": "null", "render": function ( data, type, row ) { return "<a onclick='obsoleteStock("+row.transformant_id+",\""+row.transformant_name+"\")'>X</a>"; } },
44 "fnInitComplete": function(oSettings, json) {
47 jQuery('#transformant_add_to_list').html("<div class='well well-sm'><h3>Please login to use lists!</h3></div>");
50 for(let i=0; i<json.data.length; i++){
51 html += json.data[i].transformant_name+"\n";
54 jQuery("#transformant_to_new_list").html(html);
55 addToListMenu("transformant_add_to_list", "transformant_to_new_list", {
57 listType: 'accessions',