From f0c907d16ccb8999e6c8e07abebfbfb60d57178d Mon Sep 17 00:00:00 2001 From: titima15 Date: Thu, 26 Sep 2024 17:05:03 -0400 Subject: [PATCH] autogenerated name metadata section --- mason/breeders_toolbox/breeding_program.mas | 1 + .../program/autogenerated_name_metadata.mas | 33 ++++++++++++++++++++++ mason/page/detail_page_2_col_section.mas | 3 ++ 3 files changed, 37 insertions(+) create mode 100644 mason/breeders_toolbox/program/autogenerated_name_metadata.mas diff --git a/mason/breeders_toolbox/breeding_program.mas b/mason/breeders_toolbox/breeding_program.mas index 1a7a3a214..af898854b 100644 --- a/mason/breeders_toolbox/breeding_program.mas +++ b/mason/breeders_toolbox/breeding_program.mas @@ -22,6 +22,7 @@ my $program_id = $program->get_program_id; <& /page/detail_page_2_col_section.mas, info_section_collapsed => 0, program_id => $program_id, info_section_title => "

Projects

", info_section_subtitle => 'View field trials, genotyping experiments, crossing experiments', icon_class => "glyphicon glyphicon-th", info_section_id => "program_project_section" &> <& /page/detail_page_2_col_section.mas, info_section_collapsed => 0, program_id => $program_id, info_section_title => "

Stocks

", info_section_subtitle => 'View accessions, crosses, seedlots', icon_class => "glyphicon glyphicon-list-alt", info_section_id => "program_stock_section" &> <& /page/detail_page_2_col_section.mas, info_section_collapsed => 1, program_id => $program_id, info_section_title => "

Phenotype Summary

", info_section_subtitle => 'View phenotype summary and histogram', icon_class => "glyphicon glyphicon-equalizer", info_section_id => "program_phenotype_section" &> +<& /page/detail_page_2_col_section.mas, info_section_collapsed => 1, program_id => $program_id, info_section_title => "

Autogenerated Name Metadata

", info_section_subtitle => 'View stored prefixes for autogenerated names, latest serial numbers and descriptions', icon_class => "glyphicon glyphicon-text-color", info_section_id => "autogenerated_name_metadata_section" &> <& /breeders_toolbox/program/create_profile_template_dialog.mas &> <& /breeders_toolbox/program/upload_profile_dialog.mas, program_id => $program_id, program_name => $program_name &> diff --git a/mason/breeders_toolbox/program/autogenerated_name_metadata.mas b/mason/breeders_toolbox/program/autogenerated_name_metadata.mas new file mode 100644 index 000000000..741c6b3e8 --- /dev/null +++ b/mason/breeders_toolbox/program/autogenerated_name_metadata.mas @@ -0,0 +1,33 @@ +<%args> +$program_id + + +<& /util/import_javascript.mas, classes => [ 'jquery', 'jquery.dataTables' ] &> +<& /util/import_css.mas, paths => ['/documents/inc/datatables/jquery.dataTables.css'] &> + +
+ + + + + + + + + +
PrefixLatest Serial NumberDescriptionAdded by
+
+ + + diff --git a/mason/page/detail_page_2_col_section.mas b/mason/page/detail_page_2_col_section.mas index 4321054bb..101d7c8b9 100644 --- a/mason/page/detail_page_2_col_section.mas +++ b/mason/page/detail_page_2_col_section.mas @@ -583,6 +583,9 @@ $field_headers => () % if ($info_section_id eq 'program_product_profile_section'){ <& /breeders_toolbox/program/product_profile.mas, program_id => $program_id, collapse_phenotypes_section => 0 &> % } #End program_product_profile_section +% if ($info_section_id eq 'autogenerated_name_metadata_section'){ + <& /breeders_toolbox/program/autogenerated_name_metadata.mas, program_id => $program_id &> +% } #End autogenerated_name_metadata_section % if ($info_section_id eq 'activity_project_details'){ <& /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 &> -- 2.11.4.GIT