Merge pull request #4106 from solgenomics/topic/wishlist
[sgn.git] / mason / analyses / analysis_details.mas
blobb30cce5d3ccebf8a8125a6b019297d5c69971b73
1 <%args>
2 $trial_id
3 $trial_name
4 $trial_description
5 $breeding_program_name
6 $breeding_program_id
7 $year
8 $identifier_prefix
9 $trial_stock_type
10 $analysis_metadata
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>Analysis 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>Year</b></td>
47                 <td>
48                     <div id="trial_year">
49 % if ($year) {
50 %  print "$year";
51 % } else {
52 %  print "<span class='text-danger'>[No Year]</span>";
53 % }
54                     </div>
55                 </td>
56             </tr>
58             <tr><td><b>Description</b></td>
59                 <td>
60                     <div id="trial_description">
61 % if ($trial_description) {
62 %  print "$trial_description";
63 % } else {
64 %  print "<span class='text-danger'>[No Description]</span>";
65 % }
66                     </div>
67                 </td>
68             </tr>
70             <tr><td><b>Protocol</b></td>
71                 <td>
72                     <div id="analysis_protocol">
73 %  print $analysis_metadata->analysis_protocol;
74                     </div>
75                 </td>
76             </tr>
78             <tr><td><b>Dataset ID</b></td>
79                 <td>
80                     <div id="analysis_dataset_id">
81 %  print $analysis_metadata->dataset_id;
82                     </div>
83                 </td>
84             </tr>
86             <tr><td><b>Created</b></td>
87                 <td>
88                     <div id="analysis_create_timestamp">
89 %  print $analysis_metadata->create_timestamp;
90                     </div>
91                 </td>
92             </tr>
94             <tr><td><b>Result Summary</b></td>
95                 <td>
96                     <div id="analysis_result_summary">
97 %  if ($analysis_metadata->result_summary) {
98 %    while (my($k,$v) = each %{$analysis_metadata->result_summary}) {
99 %       print $k." : ".$v."<br/>";
100 %    }
101 %  }
102                     </div>
103                 </td>
104             </tr>
106         </table>
108     </div>
109     <div class="col-sm-4">
110         <div class="well well-sm">
111             <& /util/barcode.mas, identifier => "$identifier_prefix"."$trial_id", trial_id=> "$trial_id", trial_name=> "$trial_name", format=>"trial_qrcode"  &>
112         </div>
113     </div>
114 </div>