customized field headers
[sgn.git] / mason / page / detail_page_2_col_section.mas
blobec2eb309ecc0e3a2dd6ea8d0551a7916a0a13b5c
1 <%args>
2 $trial_id => undef
3 $trial_name => undef
4 $stock_id => undef
5 $stock_uniquename => undef
6 $col1_width_class => "col-sm-1"
7 $col2_width_class => "col-sm-11"
8 $icon_class => "glyphicon glyphicon-th"
9 $info_section_collapsible => 1
10 $info_section_collapsed => 1
11 $info_section_id => "2col_id"
12 $info_section_title => "A title"
13 $info_section_subtitle => "A subtitle"
14 $buttons_html => undef
15 $locations_by_program_json => undef
17 #Trying to find the right one
18 $project_id => undef
19 $name => undef
22 #Specific to trial detail page
23 $has_plant_entries => undef
24 $has_subplot_entries => undef
25 $has_tissue_sample_entries => undef
26 $has_expression_atlas => undef
27 $expression_atlas_url => undef
28 $site_project_name => undef
29 $sgn_session_id => undef
30 $user_name => undef
31 $main_production_site_url => undef
32 $trial_phenotype_files => undef
33 $hidap_enabled => undef
34 $location_name => undef
35 $country_name => undef
36 $breeding_program_name => undef
37 $breeding_program_id => undef
38 $year => undef
39 $trial_type => undef
40 $design_name => undef
41 $planting_date => undef
42 $transplanting_date => undef
43 $harvest_date => undef
44 $trial_description => undef
45 $folder_name => undef
46 $folder_id => undef
47 $plot_width => undef
48 $plot_length => undef
49 $field_size => undef
50 $field_trial_is_planned_to_be_genotyped => undef
51 $field_trial_is_planned_to_cross => undef
52 $identifier_prefix => undef
53 $genotyping_facility => undef
54 $management_factor_date => undef
55 $management_factor_type => undef
56 $trial_stock_type => undef
57 $trial_stock_count => undef
58 $trial_owner => undef
59 $phenotypes_fully_uploaded => undef
60 $user_can_modify => undef
61 $latest_trial_activity => undef
62 $has_col_and_row_numbers => undef
64 #Specific to stock detail page
65 $type_name => undef
66 $stockref => {}
67 $stockprops => undef
68 $edit_privs => undef
69 $editable_stock_props => undef
70 $editor_link => undef
71 $source_dbs => {}
72 $locus_add_uri => undef
73 $new_locus_link => undef
74 $allele_div => undef
75 $is_owner => undef
76 $map_html => undef
77 $has_pedigree => undef
78 $image_ids => undef
79 $related_image_ids => undef
80 $dbh => undef
81 $trait_ontology_db_name => undef
82 $pubs => undef
83 $cvterm_add_uri => undef
84 $referer => undef
86 #Specific to genotyping protocol detail page
87 $protocol_id => undef
88 $protocol_name => undef
89 $protocol_description => undef
90 $marker_names => []
91 $header_information_lines => []
92 $reference_genome_name => undef
93 $species_name => undef
94 $create_date => undef
95 $sample_observation_unit_type_name => undef
96 $marker_type => undef
97 $genotype_data_type => undef
98 $marker_info_headers => undef
99 $assay_type => undef
101 #Specific to drone run detail page
102 $drone_run_date => undef
103 $id_extension => undef
105 #Specific to analysis detail page
106 $analysis_metadata => undef
107 $for_analysis_page => undef
108 $data_level => undef
110 $program_id => undef
111 $program_name => undef
113 #Specific to analysis model detail page
114 $model_id => undef
115 $model_name => undef
116 $model_description => undef
117 $model_properties => {}
118 $model_file_ids => {}
119 $model_type_name => undef
120 $model_files => {}
122 #Specific to manage nirs page
123 $nirs_files => undef
124 $deleted_nirs_files => undef
125 $all_nirs_files => undef
126 $all_deleted_nirs_files => undef
127 $locations => undef
128 $sampling_facilities => ()
130 #Specific to analytics detail page
131 $analytics_protocol_id => undef
132 $analytics_protocol_name => undef
133 $analytics_protocol_description => undef
134 $analytics_protocol_type_id => undef
135 $analytics_protocol_type_name => undef
136 $analytics_protocol_create_date => undef
137 $analytics_protocol_properties => {}
138 $analytics_protocol_result_summary => {}
140 #specific to transformation project page
141 $tracking_project_id => undef
142 $autogenerated_name_prefixes => ()
144 #Specific to activity page
145 $vendor_id => undef
146 $parent_project_id => undef
147 $activity_type => undef
148 $field_headers => ()
150 </%args>
152 <& /util/import_javascript.mas,
153    classes => ["jquery", "jqueryui", "thickbox", "CXGN.Page.FormattingHelpers", "jquery.cookie", "CXGN.Stock", "d3.d3v4Min" ],
154   entries => ["sequenced_accessions"]
157 <div class="row">
158     <div class="col-sm-12">
159         <div class="well">
160             <div class="row">
161                 <div class="<% $col1_width_class %>">
162                     <span style="font-size:3.5em;" class="<% $icon_class %>"></span>
163                 </div>
164                 <div class="<% $col2_width_class %>">
166                     <&| /page/info_section.mas, id => $info_section_id, title => $info_section_title, collapsible=>$info_section_collapsible, collapsed => $info_section_collapsed, subtitle=> $info_section_subtitle &>
168 % if ($buttons_html){
169                         <div class="panel panel-default">
170                             <div class="panel-body">
171                                 <% $buttons_html %>
172                             </div>
173                         </div>
174 % }
176                         <div class="panel panel-default">
177                             <div class="panel-body">
179 % if ($info_section_id eq 'pheno_heatmap'){
180                                 <& /breeders_toolbox/trial/phenotype_heatmap.mas, trial_id => $trial_id, data_level => $data_level, has_col_and_row_numbers => $has_col_and_row_numbers &>
181 % } #End pheno_heatmap
182 % if ($info_section_id eq 'trial_design_section'){
183                                 <& /breeders_toolbox/trial/design_section.mas, trial_id => $trial_id, trial_name => $trial_name, has_subplot_entries => $has_subplot_entries, has_plant_entries => $has_plant_entries, has_tissue_sample_entries => $has_tissue_sample_entries, design_name => $design_name, trial_stock_type => $trial_stock_type &>
184 % } #End trial_design_section
185 % if ($info_section_id eq 'trial_detail_traits_assayed'){
187 % if ($has_expression_atlas) {
188                                 <& /breeders_toolbox/trial/export_trial_to_expression_atlas.mas, trial_id => $trial_id, trial_name=>$trial_name, expression_atlas_url=>$expression_atlas_url, site_project_name=>$site_project_name, sgn_session_id=>$sgn_session_id, user_name=>$user_name, main_production_site_url=>$main_production_site_url &>
189 % }
191                                 <& /breeders_toolbox/trial/phenotype_summary.mas, trial_id => $trial_id, trial_stock_type => $trial_stock_type &>
193 % } #End trial_detail_traits_assayed
195 % if ($info_section_id eq 'trial_raw_data') {
196    <& /breeders_toolbox/trial/trial_raw_data.mas, trial_id => $trial_id, trial_stock_type => $trial_stock_type &>
197 % }
200 % if ($info_section_id eq 'compute_derived_traits'){
201                                 <& /breeders_toolbox/trial/derived_trait.mas, trial_id => $trial_id &>
202 % } #End compute_derived_traits
203 % if ($info_section_id eq 'trial_upload_files'){
204                                 <& /breeders_toolbox/trial/files_section.mas, trial_id => $trial_id, trial_phenotype_files => $trial_phenotype_files, trial_stock_type => $trial_stock_type, for_analysis_page => $for_analysis_page &>
205 % } #End trial_upload_files
206 % if ($info_section_id eq 'trial_analysis_tools'){
209                                 <!-- analysis tools on saved measurements -->
210                                <& /breeders_toolbox/trial/saved_measurement_analysis.mas,
211                                      trial_id => $trial_id
212                                 &>
213                                 <!-- Phenotypic correlation analysis -->
214                                 <& /solgs/tools/correlation/analysis.mas,
215                                     corr_pop_id => $trial_id
216                                 &>
218                                 <& /solgs/tools/anova/analysis.mas,
219                                     trial_id => $trial_id
220                                 &>
222                                  <!-- Population structure analysis PCA -->
223                                 <& /solgs/tools/pca/analysis.mas,
224                                     trial_id => $trial_id
225                                   &>
227                                 <!-- Clustering -->
228                                 <& /solgs/tools/cluster/analysis.mas,
229                                     trial_id => $trial_id
230                                   &>
232                                 <!-- kinship and inbreeding-->
233                                 <& /solgs/tools/kinship/analysis.mas,
234                                     trial_id => $trial_id
235                                 &>
238                                   <& /tools/heritability/heritability.mas,
239                                     trial_id => $trial_id
240                                 &>
242                                 <& /solgs/population/trait_acronyms.mas,
243                                   trial_id => $trial_id
244                               &>
246 % if ($c->req->base =~ /sweetpotatobase/) {
247                                 <& /tools/qualityControl/qualityControl.mas,
248                                     trial_id => $trial_id
249                                 &>
250 % }
252 % if ($hidap_enabled) {
253                                 <& /hidap/hidap_trial_link.mas, main_production_site_url=>$main_production_site_url, program => $breeding_program_name, folder => $folder_name, trial => $trial_name &>
254 % }
255 % } #End trial_analysis_tools
256 % if ($info_section_id eq 'trial_weather_data'){
257                                 <& /breeders_toolbox/trial/weather.mas, location => $location_name &>
258 % } #End trial_weather_data
259 % if ($info_section_id eq 'trial_jbrowse_data'){
260                                 <& /breeders_toolbox/trial/jbrowse_instance.mas, trial_id => $trial_id &>
261 %} #End trial_jbrowse_data
262 % if ($info_section_id eq 'trial_linkage_section'){
263                                 <&| /page/info_section.mas, title => 'Field Trial to Field Trial Linkage', id => 'field_trial_from_field_trial_section', collapsible => 1, collapsed => 1 &>
264                                     <& /breeders_toolbox/trial/field_trial_from_field_trial_linkage.mas, trial_id => $trial_id, trial_type => $trial_type, trial_name=>$trial_name &>
265                                 </&>
266                                 <&| /page/info_section.mas, title => 'Field Trial to Genotyping Plate Linkage', id => 'genotyping_trial_from_field_trial_section', collapsible => 1, collapsed => 1 &>
267                                     <& /breeders_toolbox/trial/genotyping_trial_from_field_trial_linkage.mas, trial_id => $trial_id, trial_type => 'field_trial' &>
268                                 </&>
269                                 <&| /page/info_section.mas, title => 'Field Trial to Crossing Experiment Linkage', id => 'crossing_trial_from_field_trial_section', collapsible => 1, collapsed => 1 &>
270                                     <& /breeders_toolbox/trial/crossing_trial_from_field_trial_linkage.mas, trial_id => $trial_id, trial_type => 'field_trial' &>
271                                 </&>
272 %} #End trial_linkage_section
273 % if ($info_section_id eq 'trial_deletion_section'){
274                                 <&| /page/info_section.mas, title=>'Delete trial data', subtitle=>'<font color="red" role="">Deletion cannot be undone</font>', collapsed=>1, collapsible=>1 &>
275                                     <& /breeders_toolbox/trial/trial_deletion.mas, trial_id => $trial_id  &>
276                                 </&>
277 %} #End trial_deletion_section
278 % if ($info_section_id eq 'trial_data_agreement_section'){
279                                 <& /breeders_toolbox/data_agreement.mas, trial_id => $trial_id &>
280 % } #End trial_data_agreement_section
281 % if ($info_section_id eq 'trial_status_section'){
282                                 <& /breeders_toolbox/trial/trial_status.mas, trial_id => $trial_id, trial_name => $trial_name, breeding_program_name => $breeding_program_name, location_name => $location_name, year => $year, trial_type => $trial_type, planting_date => $planting_date, transplanting_date => $transplanting_date, harvest_date => $harvest_date, trial_description => $trial_description, folder_id => $folder_id, design_name => $design_name, has_plant_entries => $has_plant_entries, phenotypes_fully_uploaded => $phenotypes_fully_uploaded, user_can_modify => $user_can_modify, user_name => $user_name &>
283 % } #End trial_status_section
284 % if ($info_section_id eq 'trial_soil_data_section'){
285                                 <& /breeders_toolbox/trial/trial_soil_data.mas, trial_id => $trial_id &>
286 % } #End trial_soil_data_section
289 % if ($info_section_id eq 'stock_additional_info_section'){
290                                 <& /stock/additional_info_section.mas, stock_id => $stock_id, type_name => $type_name, stockprops => $stockprops, edit_privs => $edit_privs, editable_stock_props => $editable_stock_props, editor_link => $editor_link, source_dbs => $source_dbs, locus_add_uri => $locus_add_uri, allele_div => $allele_div, is_owner => $is_owner &>
291 % } #End stock_additional_info_section
292 % if ($info_section_id eq 'stock_trials_section'){
293                                 <& /stock/trials.mas, stock_id => $stock_id, trial_id => $trial_id, trial_name => $trial_name, name => $name, project_id => $project_id&>
294 % } #End stock_trials_section
295 % if ($info_section_id eq 'stock_upload_files'){
296                                 <& /stock/accession_files.mas, stock_id => $stock_id &>
297 % } #End stock_upload_files
298 % if ($info_section_id eq 'stock_traits_section'){
299                                 <& /stock/traits.mas, stock_id => $stock_id &>
300 % } #End stock_traits_section
301 % if ($info_section_id eq 'stock_genotypes_section'){
302                                 <& /stock/direct_genotypes.mas, stock_id => $stock_id, map_html => $map_html &>
303 % } #End stock_genotypes_section
304 % if ($info_section_id eq 'stock_pedigree_section'){
305                                 <&| /page/info_section.mas, title=>"Pedigree and Descendants" , collapsible=> 0, collapsed=>0 &>
306                                     <& /pedigree/stock_pedigree.mas, stock_id => $stock_id, has_pedigree => $has_pedigree &>
307                                 </&>
309                                 <& /pedigree/stock_pedigree_string.mas, stock_id => $stock_id &>
310 % } #End stock_pedigree_section
311 % if ($info_section_id eq 'stock_related_stock_section'){
312                                 <& /stock/related_stock.mas, stock_id => $stock_id, stock_uniquename => $stock_uniquename, stock_type => $type_name &>
313 % } #End stock_related_stock_section
314 % if ($info_section_id eq 'vector_related_stocks_section'){
315                                 <& /stock/vector_related_stocks.mas, stock_id => $stock_id, stock_uniquename => $stock_uniquename, stock_type => $type_name &>
316 % } #End vector_related_stocks_section
318 % if ($info_section_id eq 'stock_images_section'){
319                                 <& /image/compare_images.mas, stock_id => $stock_id &>
321                                 <&| /page/info_section.mas, title=>"Images of This Stock(" .  scalar(@$image_ids)  . ")", collapsible=>1, collapsed=>0 &>
322                                     <& /image/print_images.mas , images=>$image_ids , dbh=>$dbh, additional_image_button_id=>'stock_images' &>
323                                 </&>
325                                 <&| /page/info_section.mas, title=>"Images of Related Stock(s) (" .  scalar(@$related_image_ids)  . ")", collapsible=>1, collapsed=>0 &>
326                                     <& /image/print_images.mas , images=>$related_image_ids , dbh=>$dbh, additional_image_button_id=>'related_stock_images' &>
327                                 </&>
328 % } #End stock_images_section
329 % if ($info_section_id eq 'stock_sequencing_status_section'){
330                                 <& /stock/sequencing_status.mas, stock_id => $stock_id &>
331 % } #End stock audit section
332 % if($info_section_id eq 'audit_table_section'){
333         <& /stock/audit.mas, stock_id => $stock_id, stock_uniquename => $stock_uniquename&>
334 % } #End TRIALS audit section
335 % if($info_section_id eq 'trial_audit_table_section'){
336         <& /breeders_toolbox/trial/trial_audit.mas, trial_id => $trial_id, project_id => $project_id&>
337 % } #End stock requencing status section
338 % if ($info_section_id eq 'stock_literature_annotation_section'){
339                                 <&| /page/info_section.mas, title=>"Literature annotation (".scalar( @$pubs ).")" , id=>"publications" , collapsible=>1, collapsed=>1 &>
342 % foreach my $publication ( @$pubs  ) {
343   <& /chado/publication.mas, pub=>$publication &>
344     <br >
345 % }
347                                 </&>
349                                 <&| /page/info_section.mas, id   => 'stock_ontology', title=>"Ontology annotation (" . $stockref->{ontology_count} . ")" &>
350                                     <& /ontology/associate_ontology.mas,
351                                     trait_db_name => $trait_ontology_db_name,
352                                     object_id     => $stock_id ,
353                                     object_name   => "stock",
354                                     cvterm_add_uri=> $cvterm_add_uri,
355                                     ontology_url  => "/stock/$stock_id/ontologies/",
356                                     reference_uri => "/stock/$stock_id/references/",
357                                     evidence_with_uri => "/stock/$stock_id/evidences/",
358                                     show_form     => $is_owner  &>
359                                 </&>
360 % } #End stock_literature_annotation_section
361 % if ($info_section_id eq 'stock_jbrowse_section'){
362                                 <p id="jbrowse_check">[loading...]</p>
363 % } #End stock_jbrowse_section
364 % if ($info_section_id eq 'stock_comments_section'){
365                                 <& /page/comments.mas, object_type=>'stock', object_id=>$stock_id, referer=>$referer &>
366 % } #End stock_comments_section
367 % if ($info_section_id eq 'stock_delete_section'){
368                                 <& /stock/delete.mas, stock_id=>$stock_id &>
369 % } #End stock_delete_section
370 % if ($info_section_id eq 'population_delete_section'){
371                                 <& /stock/population_delete.mas, stock_id=>$stock_id, stock_uniquename=>$stock_uniquename &>
372 % } #End population_delete_section
373 % if ($info_section_id eq 'population_members_section'){
374                                 <& /stock/population_members.mas, stock_id=>$stock_id &>
375 % } #End population_members_section
376 % if ($info_section_id eq 'manage_tissue_samples_field_trials'){
377                                 <& /breeders_toolbox/tissue_samples/field_trials_with_tissue_samples.mas &>
378 % } #End manage_tissue_samples_field_trials
379 % if ($info_section_id eq 'manage_tissue_samples_genotyping_trials'){
380                                 <& /breeders_toolbox/tissue_samples/genotyping_trials.mas &>
381 % } #End manage_tissue_samples_genotyping_trials
382 % if ($info_section_id eq 'manage_tissue_samples_sampling_trials'){
383                                 <& /breeders_toolbox/tissue_samples/sampling_trials.mas &>
384 % } #End manage_tissue_samples_sampling_trials
385 % if ($info_section_id eq 'trial_details'){
386                                 <& /breeders_toolbox/trial/trial_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, location_name=>$location_name, country_name=>$country_name, year=>$year, trial_type=>$trial_type, planting_date=>$planting_date, transplanting_date=>$transplanting_date, harvest_date=>$harvest_date, trial_description=>$trial_description, folder_name=>$folder_name, folder_id=>$folder_id, identifier_prefix=>$identifier_prefix, plot_width=>$plot_width, plot_length=>$plot_length, field_size=>$field_size, field_trial_is_planned_to_be_genotyped=>$field_trial_is_planned_to_be_genotyped, field_trial_is_planned_to_cross=>$field_trial_is_planned_to_cross, trial_stock_type => $trial_stock_type, trial_stock_count => $trial_stock_count, trial_owner => $trial_owner, latest_trial_activity => $latest_trial_activity &>
387 % } #End trial_details
388 % if ($info_section_id eq 'stocks_search_graphical_filtering'){
389                                 <& /search/stocks_graphicalfiltering.mas &>
390 % } #End stocks_search_graphical_filtering
393 % if ($info_section_id eq 'genotyping_data_project_details'){
394                                 <& /breeders_toolbox/genotyping_data_project/details.mas, trial_id=>$trial_id, trial_name=>$trial_name, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, location_name=>$location_name, year=>$year, trial_description=>$trial_description, identifier_prefix=>$identifier_prefix, genotyping_facility => $genotyping_facility, genotype_data_type => $genotype_data_type, trial_owner => $trial_owner &>
395 % } #End genotyping_data_project_details
396 % if ($info_section_id eq 'genotyping_data_project_protocols'){
397                                 <& /breeders_toolbox/genotyping_data_project/protocols.mas, trial_id=>$trial_id &>
398 % } #End genotyping_data_project_protocols
399 % if ($info_section_id eq 'genotyping_data_project_data'){
400                                 <& /breeders_toolbox/genotyping_data_project/genotype_data.mas, trial_id=>$trial_id &>
401 % } #End genotyping_data_project_data
402 % if ($info_section_id eq 'genotyping_project_plates'){
403                                 <& /breeders_toolbox/genotyping_data_project/genotyping_plates.mas, trial_id=>$trial_id &>
404 % } #End genotyping_project_plates
405 % if ($info_section_id eq 'genotyping_data_archived_vcf') {
406                                 <& /breeders_toolbox/genotyping_data_project/genotype_archived_vcf.mas, trial_id=>$trial_id &>
407 % } #End genotyping_data_archived_vcf
408 % if ($info_section_id eq 'genotyping_project_deletion_section'){
409                                 <& /breeders_toolbox/genotyping_data_project/genotyping_project_deletion.mas, trial_id=>$trial_id &>
410 % } #End genotyping_project_deletion_section
411 % if ($info_section_id eq 'project_pcr_genotype_data'){
412                                 <& /breeders_toolbox/genotyping_data_project/pcr_genotype_data.mas, trial_id => $trial_id, marker_names => $marker_names &>
413 % } #End project_pcr_genotype_data
416 % if ($info_section_id eq 'identifier_generation_list'){
417                                 <& /breeders_toolbox/identifier_generation/list_identifier_generation.mas &>
418 % } #End identifier_generation_list
419 % if ($info_section_id eq 'management_factor_details'){
420                                 <& /breeders_toolbox/trial/management_factor_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, trial_description=>$trial_description, year=>$year, management_factor_type=>$management_factor_type, management_factor_date=>$management_factor_date &>
421 % } #End management_factor_details
422 % if ($info_section_id eq 'management_factor_design'){
423                                 <& /breeders_toolbox/trial/design_section_management_factor.mas, trial_id => $trial_id, trial_name => $trial_name, has_subplot_entries => $has_subplot_entries, has_plant_entries => $has_plant_entries, has_tissue_sample_entries => $has_tissue_sample_entries, design_name => $design_name &>
424 % } #End management_factor_design
426 % if ($info_section_id eq 'genotyping_protocol_details'){
427                                 <& /breeders_toolbox/genotyping_protocol/details.mas, protocol_id => $protocol_id, protocol_name => $protocol_name, protocol_description => $protocol_description, marker_names => $marker_names, header_information_lines => $header_information_lines, reference_genome_name => $reference_genome_name, species_name => $species_name, create_date => $create_date, sample_observation_unit_type_name => $sample_observation_unit_type_name, marker_type => $marker_type, assay_type => $assay_type &>
428 % } #End genotyping_protocol_details
429 % if ($info_section_id eq 'genotyping_protocol_markers'){
430                                 <& /breeders_toolbox/genotyping_protocol/markers.mas, protocol_id => $protocol_id, marker_info_headers => $marker_info_headers &>
431 % } #End genotyping_protocol_markers
432 % if ($info_section_id eq 'genotyping_protocol_genotype_data'){
433                                 <& /breeders_toolbox/genotyping_protocol/genotype_data.mas, protocol_id => $protocol_id &>
434 % } #End genotyping_protocol_genotype_data
435 % if ($info_section_id eq 'genotyping_protocol_delete_genotype_data') {
436                                 <& /breeders_toolbox/genotyping_protocol/delete_genotype_data.mas, protocol_id => $protocol_id &>
437 % }
438 % if ($info_section_id eq 'pcr_based_genotyping_markers'){
439                                 <& /breeders_toolbox/genotyping_protocol/pcr_markers.mas, protocol_id => $protocol_id &>
440 % } #End pcr_based_genotyping_markers
441 % if ($info_section_id eq 'pcr_genotyping_protocol_genotype_data'){
442                                 <& /breeders_toolbox/genotyping_protocol/pcr_genotype_data.mas, protocol_id => $protocol_id, marker_names => $marker_names &>
443 % } #End pcr_genotyping_protocol_genotype_data
447 % if ($info_section_id eq 'crossingtrial_details'){
448                                 <& /breeders_toolbox/cross/crossingtrial_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, location_name=>$location_name, country_name=>$country_name, year=>$year, planting_date=>$planting_date, transplanting_date=>$transplanting_date, harvest_date=>$harvest_date, trial_description=>$trial_description, folder_name=>$folder_name, folder_id=>$folder_id, identifier_prefix=>$identifier_prefix, trial_owner => $trial_owner &>
449 % } #End crossingtrial_details
451 % if ($info_section_id eq 'target_numbers_crossingtrial_section'){
452                                 <& /breeders_toolbox/cross/target_numbers.mas, trial_id=>$trial_id &>
453 % } #End target_numbers_crossingtrial_section
455 % if ($info_section_id eq 'crosses_in_crossingtrial_section'){
456                                 <& /breeders_toolbox/cross/crosses_in_crossingtrial.mas, trial_id=>$trial_id &>
457 % } #End crosses_in_crossingtrial_section
459 % if ($info_section_id eq 'additional_info_crossingtrial_section'){
460                                 <& /breeders_toolbox/cross/cross_additional_info_crossingtrial.mas, trial_id=>$trial_id &>
461 % } #End additional_info_crossingtrial_section
463 % if ($info_section_id eq 'cross_properties_crossingtrial_section'){
464                                 <& /breeders_toolbox/cross/cross_properties_crossingtrial.mas, trial_id=>$trial_id &>
465 % } #End cross_properties_crossingtrial_section
467 % if ($info_section_id eq 'progenies_in_crossingtrial_section'){
468                                 <& /breeders_toolbox/cross/progenies_in_crossingtrial.mas, trial_id=>$trial_id &>
469 % } #End progenies_in_crossingtrial_section
471 % if ($info_section_id eq 'seedlots_from_crossingtrial_section'){
472                                 <& /breeders_toolbox/cross/seedlots_from_crossingtrial.mas, trial_id=>$trial_id, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, locations_by_program_json=>$locations_by_program_json &>
473 % } #End seedlots_from_crossingtrial_section
475 % if ($info_section_id eq 'crossing_trial_from_field_trial_section'){
476                                 <& /breeders_toolbox/trial/crossing_trial_from_field_trial_linkage.mas, trial_id => $trial_id, trial_type => 'crossing_trial' &>
477 % } #End crossing_trial_from_field_trial_section
479 % if ($info_section_id eq 'marker_set_summary_section'){
480                                 <& /breeders_toolbox/markers/marker_set_summary.mas &>
481 % } #End marker_set_summary_section
483 % if ($info_section_id eq 'crossing_experiment_deletion_section'){
484                                 <& /breeders_toolbox/cross/crossing_experiment_deletion.mas, trial_id => $trial_id  &>
485 %} #End crossing_experiment_deletion_section
487 % if ($info_section_id eq 'intercross_section'){
488                                 <& /breeders_toolbox/cross/intercross_file_info.mas, trial_id => $trial_id  &>
489 %} #End intercross_section
491 % if ($info_section_id eq 'progeny_search_section'){
492                                 <& /search/cross/progeny_search_section.mas &>
493 %} #End progeny_search_section
495 % if ($info_section_id eq 'cross_search_section'){
496                                 <& /search/cross/cross_search_section.mas &>
497 %} #End cross_search_section
499 % if ($info_section_id eq 'parent_search_section'){
500                                 <& /search/cross/parent_search.mas &>
501 %} #End parent_search_section
503 % if ($info_section_id eq 'all_cross_entries_section'){
504                                 <& /breeders_toolbox/cross/all_cross_entries.mas &>
505 %} #End all_cross_entries_section
507 % if ($info_section_id eq 'manage_nirs_main'){
508                                 <& /tools/nirs/manage_nirs_main.mas, nirs_files => $nirs_files, deleted_nirs_files => $deleted_nirs_files, all_nirs_files => $all_nirs_files, all_deleted_nirs_files => $all_deleted_nirs_files, locations => $locations, sampling_facilities=>$sampling_facilities &>
509 % } #End manage_nirs_main
511 % if ($info_section_id eq 'manage_sequence_metadata'){
512     <& /tools/sequence_metadata/manage_sequence_metadata_main.mas &>
513 % } #End manage_smd_main
515 % if ($info_section_id eq 'manage_drone_imagery_main'){
516                                 <& /breeders_toolbox/drone_imagery/raw_image_section.mas &>
517 % } #End manage_drone_imagery_main
519 % if ($info_section_id eq 'manage_drone_imagery_generate_plot_polygons_section'){
520                                 <& /breeders_toolbox/drone_imagery/generate_plot_polygons_section.mas, id_extension=>$id_extension &>
521 % } #End manage_drone_imagery_generate_plot_polygons_section
522 % if ($info_section_id eq 'manage_drone_imagery_generate_plot_polygons_standard_process_raw_images_section'){
523                                 <& /breeders_toolbox/drone_imagery/generate_plot_polygons_standard_process_raw_images_section.mas, id_extension=>$id_extension &>
524 % } #End manage_drone_imagery_generate_plot_polygons_standard_process_raw_images_section
525 % if ($info_section_id eq 'manage_drone_imagery_generate_plot_polygons_standard_process_raw_images_section_ground_control_points'){
526                                 <& /breeders_toolbox/drone_imagery/generate_plot_polygons_standard_process_raw_images_section_ground_control_points.mas &>
527 % } #End manage_drone_imagery_generate_plot_polygons_standard_process_raw_images_section_ground_control_points
528 % if ($info_section_id eq 'manage_drone_imagery_standard_process_generate_plot_polygons_section'){
529                                 <& /breeders_toolbox/drone_imagery/generate_plot_polygons_standard_process_section.mas &>
530 % } #End manage_drone_imagery_standard_process_generate_plot_polygons_section
531 % if ($info_section_id eq 'drone_run_project_details'){
532                                 <& /breeders_toolbox/drone_imagery/drone_run_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, trial_description=>$trial_description, identifier_prefix=>$identifier_prefix, drone_run_date=>$drone_run_date &>
533 % } #End trial_details
534 % if ($info_section_id eq 'analysis_details'){
535                                 <& /analyses/analysis_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, trial_description=>$trial_description, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, year=>$year, identifier_prefix=>$identifier_prefix, trial_stock_type => $trial_stock_type, analysis_metadata=>$analysis_metadata &>
536 % } #End analysis_details
537 % if ($info_section_id eq 'analysis_page_analysis_tools'){
538                                 <& /breeders_toolbox/trial/correlation_workflow.mas, trial_id => $trial_id, is_analysis => 1 &>
540                                 <& /breeders_toolbox/trial/time_series_accessions_workflow.mas, trial_id => $trial_id, data_level=>'analysis_instance' &>
542                                 <& /breeders_toolbox/trial/accession_rank_workflow.mas, trial_id => $trial_id, data_level=>'analysis_instance' &>
544                                 <& /breeders_toolbox/trial/genotype_comparison_workflow.mas, trial_id => $trial_id, data_level=>'analysis_instance' &>
545 % }
546 % if ($info_section_id eq 'model_details'){
547                                 <& /analyses/model_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, analysis_metadata=>$analysis_metadata &>
548 % } #End analysis_details
549 % if ($info_section_id eq 'analysis_model_details'){
550                                 <& /analyses/model_detail_page_section.mas, model_id => $model_id, model_name => $model_name, model_description => $model_description, model_properties => $model_properties, model_file_ids => $model_file_ids, model_type_name => $model_type_name, model_files => $model_files, identifier_prefix => $identifier_prefix &>
551 % } #End analysis_model_details
552 % if ($info_section_id eq 'model_analyses'){
553                                 <& /analyses/model_detail_page_analyses_section.mas, model_id => $model_id &>
554 % } #End model_analyses
555 % if ($info_section_id eq 'analytics_protocol_details'){
556                                 <& /analytics_protocols/analytics_protocols_details.mas, analytics_protocol_id=>$analytics_protocol_id, analytics_protocol_name=>$analytics_protocol_name, analytics_protocol_description=>$analytics_protocol_description, analytics_protocol_type_id=>$analytics_protocol_type_id, analytics_protocol_type_name=>$analytics_protocol_type_name, analytics_protocol_create_date=>$analytics_protocol_create_date, analytics_protocol_properties=>$analytics_protocol_properties, analytics_protocol_result_summary=>$analytics_protocol_result_summary &>
557 % } #End analytics_protocol_details
558 % if ($info_section_id eq 'analytics_protocol_result_files'){
559                                 <& /analytics_protocols/analytics_protocols_result_files.mas, analytics_protocol_id=>$analytics_protocol_id, analytics_protocol_name=>$analytics_protocol_name &>
560 % } #End analytics_protocol_result_files
561 % if ($info_section_id eq 'model_deletion_section'){
562                                 <&| /page/info_section.mas, title=>'Delete model', subtitle=>'<font color="red" role="">Deletion cannot be undone</font>', collapsed=>1, collapsible=>1 &>
563                                     <& /analyses/model_deletion.mas, model_id => $model_id  &>
564                                 </&>
565 % } #End model_deletion_section
566 % if ($info_section_id eq 'manage_file_share_dump'){
567                                 <& /breeders_toolbox/file_share/file_dump_share_files.mas &>
568 % } #End manage_file_share_dump
570 % if ($info_section_id eq 'program_location_section'){
571                                 <& /breeders_toolbox/program/program_locations.mas, program_id => $program_id &>
572 % } #End program_location_section
573 % if ($info_section_id eq 'program_project_section'){
574                                 <& /breeders_toolbox/program/program_project_section.mas, program_id => $program_id &>
575 % } #End program_project_section
576 % if ($info_section_id eq 'program_stock_section'){
577                                 <& /breeders_toolbox/program/program_stock_section.mas, program_id => $program_id &>
578 % } #End program_stock_section
579 % if ($info_section_id eq 'program_phenotype_section'){
580                                 <& /breeders_toolbox/program/traits.mas, program_id => $program_id, collapse_phenotypes_section => 0 &>
581 % } #End program_phenotype_section
582 % if ($info_section_id eq 'program_product_profile_section'){
583                                 <& /breeders_toolbox/program/product_profile.mas, program_id => $program_id, collapse_phenotypes_section => 0 &>
584 % } #End program_product_profile_section
586 % if ($info_section_id eq 'activity_project_details'){
587                                 <& /tracking_activities/activity_project_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, location_name=>$location_name, country_name=>$country_name, year=>$year, trial_description=>$trial_description, folder_name=>$folder_name, folder_id=>$folder_id, identifier_prefix=>$identifier_prefix, trial_owner => $trial_owner, vendor_id => $vendor_id, parent_project_id => $parent_project_id, activity_type => $activity_type &>
588 % } #End activity_project_details
589 % if ($info_section_id eq 'active_tracking_identifiers_section'){
590                                 <& /tracking_activities/active_tracking_identifiers.mas, trial_id=>$trial_id, field_headers=>$field_headers &>
591 % } #End active_tracking_identifiers_section
592 % if ($info_section_id eq 'inactive_tracking_identifiers_section'){
593                                 <& /tracking_activities/inactive_tracking_identifiers.mas, trial_id=>$trial_id, field_headers=>$field_headers &>
594 % } #End inactive_tracking_identifiers_section
597 % if ($info_section_id eq 'transformation_project_details'){
598                                 <& /transformation/transformation_project_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, location_name=>$location_name, country_name=>$country_name, year=>$year, trial_description=>$trial_description, folder_name=>$folder_name, folder_id=>$folder_id, identifier_prefix=>$identifier_prefix, trial_owner => $trial_owner, tracking_project_id => $tracking_project_id, autogenerated_name_prefixes => $autogenerated_name_prefixes &>
599 % } #End transformation_project_details
600 % if ($info_section_id eq 'transformations_in_project_section'){
601                                 <& /transformation/transformations_in_project.mas, trial_id=>$trial_id &>
602 % } #End transformations_in_project_section
603 % if ($info_section_id eq 'inactive_transformation_ids_in_project_section'){
604                                 <& /transformation/inactive_transformation_ids_in_project.mas, trial_id=>$trial_id &>
605 % } #End inactive_transformation_ids_in_project_section
608 % if (!$info_section_id){
609                                 <p>No section specified! Main content goes here!</p>
610 % }
612                             </div>
613                         </div>
614                     </&>
615                 </div>
616             </div>
617         </div>
618     </div>
619 </div>