4 $stock_uniquename => undef
8 % if ($stock_type eq 'accession' || $stock_type eq 'plant' || $stock_type eq 'plot' || $stock_type eq 'subplot' || $stock_type eq 'tissue_sample'){
10 <&| /page/info_section.mas, id=>'related_stocks_in_trial', title => 'Related stocks in trials', collapsible=>1, collapsed=>1 &>
11 <div class="well well-sm">
12 <div class="panel panel-default">
13 <div class="panel-body">
14 <table id = "trial_related_stock" class="table table-hover table-striped">
26 <&| /page/info_section.mas, title => 'Copy Stocks to a List', collapsible=>1, collapsed=>1, subtitle=>'<i>Copy the stock names showing in table to a new or exisiting list</i>'&>
28 <div style="text-align:right" id="trial_stocks_to_list_menu"></div>
29 <div id="trial_stock_names" style="display: none;"></div>
36 % if ($stock_type eq 'accession'){
38 <& /breeders_toolbox/seedlots_section.mas, stock_id=>$stock_id, stock_type=>$stock_type, stock_uniquename=>$stock_uniquename &>
42 % if ($stock_type eq 'accession'){
44 <&| /page/info_section.mas, id=>'related_stock_progenies', title => 'Progenies of this Accession (as female or male parent)', collapsible=>1, collapsed=>1 &>
45 <div class="well well-sm">
46 <div class="panel panel-default">
47 <div class="panel-body">
48 <table id = "progenies" class="table table-hover table-striped">
51 <th>As female or male parent</th>
60 <&| /page/info_section.mas, title => 'Copy Stocks to a List', collapsible=>1, collapsed=>1, subtitle=>'<i>Copy the stock names showing in table to a new or exisiting list</i>'&>
62 <div style="text-align:right" id="progenies_to_list_menu"></div>
63 <div id="progeny_names" style="display: none;"></div>
68 <&| /page/info_section.mas, id=>'related_stock_siblings', title => 'Siblings of this Accession', collapsible=>1, collapsed=>1 &>
69 <div class="well well-sm">
70 <div class="panel panel-default">
71 <div class="panel-body">
72 <table id = "siblings" class="table table-hover table-striped">
75 <th>Accession Name</th>
76 <th>Female Parent</th>
86 <&| /page/info_section.mas, title => 'Copy siblings to a List', collapsible=>1, collapsed=>1, subtitle=>'<i>Copy the sibling names showing in table to a new or exisiting list</i>'&>
88 <div style="text-align:right" id="siblings_to_list_menu"></div>
89 <div id="sibling_names" style="display: none;"></div>
96 % if ($stock_type eq 'accession' || $stock_type eq 'backcross population' || $stock_type eq 'f2 population' || $stock_type eq 'mutant population' || $stock_type eq 'population' || $stock_type eq 'training population'){
98 <&| /page/info_section.mas, id=>'related_stock_groups', title => 'Groups / members', collapsible=>1, collapsed=>1 &>
99 <div class="well well-sm">
100 <div class="panel panel-default">
101 <div class="panel-body">
102 <table id = "group" class="table table-hover table-striped">
114 <&| /page/info_section.mas, title => 'Copy Stocks to a List', collapsible=>1, collapsed=>1, subtitle=>'<i>Copy the stock names showing in table to a new or exisiting list</i>'&>
116 <div style="text-align:right" id="groups_and_members_to_list_menu"></div>
117 <div id="group_and_member_names" style="display: none;"></div>
124 % if ($stock_type eq 'accession' || $stock_type eq 'plant' || $stock_type eq 'plot' || $stock_type eq 'subplot' || $stock_type eq 'tissue_sample'){
126 <&| /page/info_section.mas, id=>'related_stock_tissues', title => 'Related stocks for tissue sample', collapsible=>1, collapsed=>1 &>
127 <div class="well well-sm">
128 <div class="panel panel-default">
129 <div class="panel-body">
130 <table id = "tissue_sample" class="table table-hover table-striped">
142 <&| /page/info_section.mas, title => 'Copy Stocks to a List', collapsible=>1, collapsed=>1, subtitle=>'<i>Copy the stock names showing in table to a new or exisiting list</i>'&>
144 <div style="text-align:right" id="tissue_samples_to_list_menu"></div>
145 <div id="tissue_sample_names" style="display: none;"></div>
154 jQuery(document).ready(function(){
157 jQuery('#related_stocks_in_trial_onswitch').one("click", function(){
158 var trial_stock_table = jQuery('#trial_related_stock').DataTable({
159 'ajax':'/stock/'+ <% $stock_id %> + '/datatables/trial_related_stock',
160 "fnInitComplete": function(oSettings, json) {
163 jQuery('#trial_stocks_to_list_menu').html("<div class='well well-sm'><h3>Please login to use lists!</h3></div>");
166 for(var i=0; i<json.data.length; i++){
167 html += json.data[i][2]+"\n";
169 jQuery("#trial_stock_names").html(html);
170 addToListMenu("trial_stocks_to_list_menu", "trial_stock_names", {
179 jQuery('#related_stock_progenies_onswitch').one("click", function(){
180 var progeny_table = jQuery('#progenies').DataTable({
182 'ajax':'/stock/'+ <% $stock_id %> + '/datatables/progenies',
183 "fnInitComplete": function(oSettings, json) {
186 jQuery('#progenies_to_list_menu').html("<div class='well well-sm'><h3>Please login to use lists!</h3></div>");
189 for(var i=0; i<json.data.length; i++){
190 html += json.data[i][2]+"\n";
192 jQuery("#progeny_names").html(html);
193 addToListMenu("progenies_to_list_menu", "progeny_names", {
195 listType:'accessions'
202 jQuery('#related_stock_groups_onswitch').one("click", function(){
203 var group_and_member_table = jQuery('#group').DataTable({
204 'ajax':'/stock/'+ <% $stock_id %> + '/datatables/group_and_member',
205 "fnInitComplete": function(oSettings, json) {
208 jQuery('#groups_and_members_to_list_menu').html("<div class='well well-sm'><h3>Please login to use lists!</h3></div>");
211 for(var i=0; i<json.data.length; i++){
212 html += json.data[i][2]+"\n";
214 jQuery("#group_and_member_names").html(html);
215 addToListMenu("groups_and_members_to_list_menu", "group_and_member_names", {
224 jQuery('#related_stock_tissues_onswitch').one("click", function(){
225 var tissue_sample_table = jQuery('#tissue_sample').DataTable({
226 'ajax':'/stock/'+ <% $stock_id %> + '/datatables/stock_for_tissue',
227 "fnInitComplete": function(oSettings, json) {
230 jQuery('#tissue_samples_to_list_menu').html("<div class='well well-sm'><h3>Please login to use lists!</h3></div>");
233 for(var i=0; i<json.data.length; i++){
234 html += json.data[i][2]+"\n";
236 jQuery("#tissue_sample_names").html(html);
237 addToListMenu("tissue_samples_to_list_menu", "tissue_sample_names", {
247 jQuery('#related_stock_siblings_onswitch').one("click", function(){
248 var siblings_table = jQuery('#siblings').DataTable({
250 'ajax':'/stock/'+ <% $stock_id %> + '/datatables/siblings',
251 "fnInitComplete": function(oSettings, json) {
254 jQuery('#siblings_to_list_menu').html("<div class='well well-sm'><h3>Please login to use lists!</h3></div>");
257 for(var i=0; i<json.data.length; i++){
258 html += json.data[i][4]+"\n";
260 jQuery("#sibling_names").html(html);
261 addToListMenu("siblings_to_list_menu", "sibling_names", {
263 listType:'accessions'