add event relations to time ontology and related code
[sgn.git] / mason / breeders_toolbox / genotyping_data_project / details.mas
blob9dca7607c54b8ec97bbc3487c5214a54cad33847
1 <%args>
2 $trial_id
3 $trial_name
4 $breeding_program_name
5 $breeding_program_id
6 $location_name
7 $year
8 $trial_description
9 $identifier_prefix
10 $genotyping_facility
11 </%args>
13 <div class="row">
14     <div class="col-sm-8">
16         <table class="table table-hover table-bordered" >
18             <tr>
19                 <td><b>Genotyping Data Project Name</b></td>
20                 <td>
21                     <div id="trial_name">
22 % if ($trial_name) {
23 %   print "$trial_name";
24 % } else {
25 %   print "<span class='text-danger'>[No Trial Name]</span>";
26 % }
27                     </div>
28                 </td>
29             </tr>
31             <tr>
32                 <td><b>Breeding Program </b></td>
33                 <td>
34                     <span id="breeding_program">
35 % if ($breeding_program_name) {
36         <a href="/breeders/program/<% $breeding_program_id %>"><% $breeding_program_name %></a>
37 % }
38 % else {
39 %  print "<span class='text-danger'>[No Breeding Program]</span>";
40 % }
41                     </span>
42                 </td>
43             </tr>
45             <tr>
46                 <td><b>Trial Location</b></td>
47                 <td>
48                     <div id="trial_location">
49 % if ($location_name) {
50 %  print "$location_name";
51 % } else {
52 %  print "<span class='text-danger'>[No Location]</span>";
53 % }
54                     </div>
55                 </td>
56             </tr>
58             <tr>
59                 <td><b>Year</b></td>
60                 <td>
61                     <div id="trial_year">
62 % if ($year) {
63 %  print "$year";
64 % } else {
65 %  print "<span class='text-danger'>[No Year]</span>";
66 % }
67                     </div>
68                 </td>
69             </tr>
71             <tr><td><b>Description</b></td>
72                 <td>
73                     <div id="trial_description">
74 % if ($trial_description) {
75 %  print "$trial_description";
76 % } else {
77 %  print "<span class='text-danger'>[No Description]</span>";
78 % }
79                     </div>
80                 </td>
81             </tr>
83             <tr><td><b>Genotyping Facility</b></td>
84                 <td>
85                     <div id="trial_genotyping_facility">
86 % if ($genotyping_facility) {
87 %  print "$genotyping_facility";
88 % } else {
89 %  print "<span class='text-danger'>[No Genotyping Facility]</span>";
90 % }
91                     </div>
92                 </td>
93             </tr>
94         </table>
96     </div>
97     <div class="col-sm-4">
98         <div class="well well-sm">
99             <& /util/barcode.mas, identifier => "$identifier_prefix"."$trial_id", trial_id=> "$trial_id", trial_name=> "$trial_name", format=>"trial_qrcode"  &>
100         </div>
101     </div>
102 </div>