check if stock_dbxref exists before transferring new as it might violate a unique...
[sgn.git] / mason / breeders_toolbox / cross / target_numbers.mas
blob9fd1316913d70673cbfabdd052c505be1967ba3b
1 <%args>
2 $trial_id
3 </%args>
5 <& /util/import_javascript.mas, classes => [ 'jquery', 'jquery.dataTables' ] &>
6 <& /util/import_css.mas, paths => ['/documents/inc/datatables/jquery.dataTables.css'] &>
8 <div style="overflow:scroll">
9     <table class="table table-hover table-bordered" id="target_numbers_and_progress_table">
10         <thead>
11             <tr>
12                 <th>Female Accession</th>
13                 <th>Male Accession</th>
14                 <th>Target No. of Seeds</th>
15                 <th>Actual No. of Seeds</th>
16                 <th>Target No. of Progenies</th>
17                 <th>Actual No. of Progenies</th>
18                 <th>Cross Unique IDs</th>
19             </tr>
20         </thead>
21     </table>
22 </div>
25 <script>
27 jQuery(document).ready(function(){
29     jQuery('#target_numbers_crossingtrial_section_onswitch').click(function(){
30         jQuery('#target_numbers_and_progress_table').DataTable({
31             'destroy': true,
32             'ajax': '/ajax/crossing_experiment/target_numbers_and_progress/'+ <% $trial_id %>,
34         });
35     });
37 });
39 </script>