2 $number_of_crosses_added => undef
3 $number_of_unique_parents => undef
4 $upload_data_ref => undef
7 <& /util/import_javascript.mas, classes => [ 'jquery', 'jqueryui' ] &>
13 <h1>Upload cross file verification</h1>
16 <a id="return_to_home" href="/breeders/home" >Return to breeders tools</button>
20 <div id="verify_uploaded_data_dialog" class="ui-widget" >
22 print "<br><b>Number of crosses added:</b> $number_of_crosses_added<br>";
23 print "<b>Number of unique parents in added crosses</b>: $number_of_unique_parents<br><br>";
25 <button id="view_uploaded_data_link" >View uploaded data</button>
28 <div id="display_uploaded_data_dialog" class="ui-widget" >
31 my %upload_data = %{$upload_data_ref};
32 print "<tr><th>cross_unique_id</th><th>maternal_parent</th><th>paternal_parent</th><th>trial</th><th>location</th><th>number_of_progeny</th><th>prefix</th><th>suffix</th><th>number_of_flowers</th><th>number_of_seeds</th></tr>";
33 foreach my $key (sort { $a <=> $b} keys %upload_data) {
34 my %cross = %{$upload_data{$key}};
35 print "<tr><td>".$cross{'cross_unique_id'}."</td><td>".$cross{'maternal_parent'}."</td><td>".$cross{'paternal_parent'}."</td><td>".$cross{'cross_trial'}."</td><td>".$cross{'cross_location'}."</td>";
36 if ($cross{'number_of_progeny'}) {
37 print "<td>".$cross{'number_of_progeny'}."</td>";
42 if ($cross{'prefix'}) {
43 print "<td>".$cross{'prefix'}."</td>";
48 if ($cross{'suffix'}) {
49 print "<td>".$cross{'suffix'}."</td>";
54 if ($cross{'number_of_flowers'}) {
55 print "<td>".$cross{'number_of_flowers'}."</td>";
60 if ($cross{'number_of_seeds'}) {
61 print "<td>".$cross{'number_of_seeds'}."</td>";
73 <script defer="defer">
75 jQuery("#verify_uploaded_data_dialog").dialog( {
77 buttons: { "Close" : function() { jQuery("#verify_uploaded_data_dialog").dialog("close"); }},
83 jQuery("#view_uploaded_data_link").click( function () {
85 jQuery("#display_uploaded_data_dialog" ).dialog("open");
88 jQuery("#display_uploaded_data_dialog").dialog( {
90 buttons: { "OK" : function() { jQuery("#display_uploaded_data_dialog").dialog("close"); },},
96 function submit_cross_upload() {
102 if ($number_of_crosses_added) {
103 print '<object id="view_uploaded_data_link"></object>';