Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion mason/breeders_toolbox/breeding_program.mas
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ my $program_id = $program->get_program_id;

<& /page/detail_page_2_col_section.mas, info_section_collapsed => 1, program_id => $program_id, info_section_title => "<h4 style='display:inline'>Autogenerated Name Metadata</h4>", info_section_subtitle => 'View name formats for autogenerated names, last serial numbers and descriptions', icon_class => "glyphicon glyphicon-text-color", buttons_html => '<button class="btn btn-sm btn-primary" style="margin:3px" id="add_autogenerated_name_metadata_link_program_page" name="add_autogenerated_name_metadata_link" >Add Autogenerated Name Metadata</button>', info_section_id => "autogenerated_name_metadata_section" &>
<& /page/detail_page_2_col_section.mas, info_section_collapsed => 1, program_id => $program_id, program_name => $program_name, info_section_title => "<h4 style='display:inline'>Product Profiles</h4>", info_section_subtitle => 'View product profiles',buttons_html => '<button class="btn btn-sm btn-primary" style="margin:3px" id="upload_profile_button">Upload New Product Profile</button><button class="btn btn-sm btn-default" style="margin:3px" id="download_template_button">Download Template</button>', icon_class => "glyphicon glyphicon-signal", info_section_id => "program_product_profile_section" &>
<& /page/detail_page_2_col_section.mas, info_section_collapsed => 1, program_id => $program_id, info_section_title => "<h4 style='display:inline'>Locations</h4>", info_section_subtitle => 'View locations related to this breeding program', icon_class => "glyphicon glyphicon-pushpin", info_section_id => "program_location_section" &>
<&| /page/detail_page_2_col_section.mas, info_section_collapsed => 1, info_section_title => "<h4 style='display:inline'>Locations</h4>", info_section_subtitle => 'View locations related to this breeding program', icon_class => "glyphicon glyphicon-pushpin" &>
<& /breeders_toolbox/program/program_locations.mas, program_id => $program_id &>
</&>
<& /page/detail_page_2_col_section.mas, info_section_collapsed => 0, program_id => $program_id, info_section_title => "<h4 style='display:inline'>Projects</h4>", 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 => "<h4 style='display:inline'>Stocks</h4>", 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 => "<h4 style='display:inline'>Phenotype Summary</h4>", info_section_subtitle => 'View phenotype summary and histogram', icon_class => "glyphicon glyphicon-equalizer", info_section_id => "program_phenotype_section" &>
Expand Down
13 changes: 9 additions & 4 deletions mason/page/detail_page_2_col_section.mas
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $col2_width_class => "col-sm-11"
$icon_class => "glyphicon glyphicon-th"
$info_section_collapsible => 1
$info_section_collapsed => 1
$info_section_id => "2col_id"
$info_section_id => undef
$info_section_title => "A title"
$info_section_subtitle => "A subtitle"
$buttons_html => undef
Expand Down Expand Up @@ -193,6 +193,10 @@ $logged_in_name => undef

</%args>

<%init>
my $body_content = $m->content || '';
</%init>

<& /util/import_javascript.mas,
classes => ["jquery", "jqueryui", "thickbox", "CXGN.Page.FormattingHelpers", "jquery.cookie", "CXGN.Stock", "d3.d3v4Min" ],
entries => ["sequenced_accessions"]
Expand Down Expand Up @@ -639,9 +643,6 @@ $logged_in_name => undef
<& /breeders_toolbox/file_share/file_dump_share_files.mas &>
% } #End manage_file_share_dump

% if ($info_section_id eq 'program_location_section'){
<& /breeders_toolbox/program/program_locations.mas, program_id => $program_id &>
% } #End program_location_section
% if ($info_section_id eq 'program_project_section'){
<& /breeders_toolbox/program/program_project_section.mas, program_id => $program_id &>
% } #End program_project_section
Expand Down Expand Up @@ -690,7 +691,11 @@ $logged_in_name => undef
% } #End propagation_group_ids_in_project_section

% if (!$info_section_id){
% if ($body_content =~ /\S/) {
<% $body_content %>
% } else {
<p>No section specified! Main content goes here!</p>
% }
% }

</div>
Expand Down
Loading