6 /breeders_toolbox/treatment.mas - a mason component to display a treatment detail page
19 $breeding_program_name
24 $planting_date => undef
25 $harvest_date => undef
26 $trial_description => undef
27 $user_can_modify => undef
28 $has_plant_entries => undef
29 $has_subplot_entries => undef
30 $hidap_enabled => undef
33 $plants_per_plot => undef
34 $has_expression_atlas => undef
35 $expression_atlas_url => undef
36 $site_project_name => undef
37 $trial_phenotype_files => undef
38 $sgn_session_id => undef
41 $phenotypes_fully_uploaded => undef
42 $identifier_prefix => 'SGN'
47 @media (min-width: 1200px) {
57 <& /util/import_javascript.mas, classes => [ 'jquery.iframe-post-form', 'CXGN.Trial' , 'jstree/dist/jstree', 'CXGN.BreedersToolbox.HTMLSelect', 'moment_min', 'daterangepicker' ] &>
61 my $start_time = time();
63 #print STDERR "Check 7 (mason) : ".(time() - $start_time)."\n";
70 <& /page/page_title.mas, title=>"Treatment detail for ".$trial_name &>
72 <&| /page/info_section.mas, title=>"Trial details", collapsible => 1 &>
75 <div class="panel panel-default">
76 <table class="table table-hover" >
79 <td><b>Treatment Name</b></td>
83 % print "$trial_name";
85 % print "[No Trial Name]";
106 /* prevent horizontal scrollbar */
112 <&| /page/info_section.mas, id => "trial_design_section", title=>"Design", collapsible=>1, collapsed=>0 &>
114 <div class="well well-sm">
116 <&| /page/info_section.mas, id => "trial_accessions", title=>"Accessions", is_subsection => 1, collapsible=>1, collapsed=>1 &>
118 <& /breeders_toolbox/trial/trial_accessions.mas, trial_id => $trial_id &>
122 <&| /page/info_section.mas, id => "trial_controls", title=>"Controls", is_subsection => 1, collapsible=>1, collapsed=>1 &>
124 <& /breeders_toolbox/trial/trial_controls.mas, trial_id => $trial_id &>
128 <&| /page/info_section.mas, id => "trial_plots", title=>"Plots", is_subsection => 1, collapsible=>1, collapsed=>1 &>
130 <& /breeders_toolbox/trial/trial_plots.mas, trial_id => $trial_id &>
134 % if ($has_subplot_entries) {
136 <&| /page/info_section.mas, id => "trial_subplots", title=>"Subplots", is_subsection => 1, collapsible=>1, collapsed=>1 &>
138 <& /breeders_toolbox/trial/trial_subplots.mas, trial_id => $trial_id &>
144 % if ($has_plant_entries) {
146 <&| /page/info_section.mas, id => "trial_plants", title=>"Plant Entries", is_subsection => 1, collapsible=> 1, collapsed=>1 &>
148 <& /breeders_toolbox/trial/trial_plants.mas, trial_id => $trial_id &>
154 </div><!-- closes well -->
158 <& /breeders_toolbox/trial/download_phenotypes_dialog.mas, trial_ids => $trial_id, dialog_name => $trial_name, dialog_type => 'Trial' &>
161 <&| /page/info_section.mas, id=> "trial_detail_traits_assayed", title => "Traits assayed", collapsible=>1, collapsed=>1, hide_if_empty=>1, subtitle=>"[<a id='trial_download_phenotypes_button'>Download Phenotype Data</a>]" &>
163 <& /breeders_toolbox/trial/phenotype_summary.mas, trial_id => $trial_id &>
168 <&| /page/info_section.mas, title=>"Files", collapsible=>1, collapsed=>0 &>
170 <div class="well well-sm">
172 <&| /page/info_section.mas, title=>"Uploaded Phenotyping Files", is_subsection => 1, collapsible=>1, collapsed=>0 &>
174 <table class="table table-bordered files_datatables" alt="">
176 <tr><th>Filename</th><th>Date Uploaded</th><th>Uploaded By</th><th>File Type</th><th>Options</th></tr>
179 % foreach my $f (@$trial_phenotype_files) {
181 <td><% $f->[4] %></td>
182 <td><% $f->[1] %></td>
183 <td><a href="/solpeople/profile/<% $f->[2] %>"><% $f->[3] %></a></td>
184 <td><% $f->[6] %></td>
185 <td><a href="/breeders/phenotyping/view/<% $f->[0] %>">View</a> | <a href="/breeders/phenotyping/download/<% $f->[0] %>">Download</a></td>
191 </&><!-- closes uploaded file section -->
193 </div><!-- closes well -->
195 </&><!-- closes entire phenotyping file section -->
197 % my $data_agreement_link = "Add/edit data agreement";
198 % if ($user_can_modify) { $data_agreement_link = '[<a id="add_data_agreement">Add/edit data agreement</a>]'; }
199 <&| /page/info_section.mas, title=>"Data Agreement", is_subsection => 0, collapsible=>1, collapsed=>0, subtitle=> $data_agreement_link &>
201 <& /breeders_toolbox/data_agreement.mas, trial_id => $trial_id &>
206 <div id="trialIDDiv" class="trialIDDivClass" style="display:none;">
210 <script defer="defer">
212 jQuery(document).ready(function () {
214 trial_detail_page_setup_dialogs();