check if stock_dbxref exists before transferring new as it might violate a unique...
[sgn.git] / mason / about / sgn / status.mas
blob793dae1b34b687ff6163045f5cb75ad4766d2a91
1 <%args>
2     $accession_count
3     $breeding_program_count
4     $accession_count_pheno
5     $accession_count_geno
6     $trait_count
7     $pheno_trial_count
8     $pheno_observations
9     $pheno_last_addition
10     $geno_protocol_count
11     $marker_count
12     $geno_last_addition
13 </%args>
15 <style>
16     .content-status-well {
17         padding: 0;
18     }
20     table.content-status-table {
21         width: 100%;
22     }
24     table.content-status-table tr {
25         height: 54px;
26     }
27     table.content-status-table tr:nth-child(even) {
28         background-color: #fcfcfc;
29     }
31     table.content-status-table td {
32         vertical-align: middle;
33         padding: 10px 25px;
34     }
35     table.content-status-table td:nth-child(1) {
36         font-weight: bold;
37         width: 40%;
38     }
39     table.content-status-table td:nth-child(3) {
40         text-align: center;
41         width: 40%;
42     }    
44     a.btn {
45         color: #fff;
46     }
47     a.btn:hover {
48         background-color: #286090 !important;
49         color: #fff;
50     }
51 </style>
55 <& /page/page_title.mas, title=>'Content Status' &>
57 <&| /page/info_section.mas, 
58         id=>'content_accessions',
59         title=>'Accessions',
60         collapsible=>1,
61         collapsed=>0 &>
63     <div class="well content-status-well">
64         <table class="content-status-table">
66             <tr>
67                 <td>Breeding Programs</td>
68                 <td><% $breeding_program_count %></td>
69                 <td><a href="/breeders/manage_programs" class="btn btn-primary" role="button">Manage</a></td>
70             </tr>
71             
72             <tr>
73                 <td>Accessions</td>
74                 <td><% $accession_count %></td>
75                 <td>
76                     <a href="/search/stocks" class="btn btn-primary" role="button">Search</a>
77                     <a href="/breeders/accessions" class="btn btn-primary" role="button">Manage</a>
78                 </td>
79             </tr>
81             <tr>
82                 <td>Accessions with Phenotype Data</td>
83                 <td><% $accession_count_pheno %></td>
84                 <td></td>
85             </tr>
87             <tr>
88                 <td>Accessions with Genotype Data</td>
89                 <td><% $accession_count_geno %></td>
90                 <td></td>
91             </tr>
93         </table>
94     </div>
96 </&>
99 <&| /page/info_section.mas, 
100         id=>'content_phenotype',
101         title=>'Phenotype Data',
102         collapsible=>1,
103         collapsed=>0 &>
105     <div class="well content-status-well">
106         <table class="content-status-table">
108             <tr>
109                 <td>Observed Traits</td>
110                 <td><% $trait_count %></td>
111                 <td>
112                     <a href="/search/traits" class="btn btn-primary" role="button">Search</a>
113                     <a href="/tools/onto" class="btn btn-primary" role="button">Browse</a>
114                 </td>
115             </tr>
117             <tr>
118                 <td>Phenotype Trials</td>
119                 <td><% $pheno_trial_count %></td>
120                 <td>
121                     <a href="/search/trials" class="btn btn-primary" role="button">Search</a>
122                     <a href="/breeders/trials" class="btn btn-primary" role="button">Manage</a>
123                 </td>
124             </tr>
126             <tr>
127                 <td>Total Phenotype Observations</td>
128                 <td><% $pheno_observations %></td>
129                 <td></td>
130             </tr>
132             <tr>
133                 <td>Last Addition</td>
134                 <td><% $pheno_last_addition %></td>
135                 <td></td>
136             </tr>
138         </table>
139     </div>
141 </&>
145 <&| /page/info_section.mas, 
146         id=>'content_genotype',
147         title=>'Genotype Data',
148         collapsible=>1,
149         collapsed=>0 &>
151     <div class="well content-status-well">
152         <table class="content-status-table">
154             <tr>
155                 <td>Genotyping Protocols</td>
156                 <td><% $geno_protocol_count %></td>
157                 <td>
158                     <a href="/search/genotyping_protocols" class="btn btn-primary" role="button">Search</a>
159                 </td>
160             </tr>
162             <tr>
163                 <td>Markers</td>
164                 <td><% $marker_count %></td>
165                 <td>
166                     <a href="/search/markers" class="btn btn-primary" role="button">Search</a>
167                 </td>
168             </tr>
170             <tr>
171                 <td>Last Addition</td>
172                 <td><% $geno_last_addition %></td>
173                 <td></td>
174             </tr>
176         </table>
177     </div>
179 </&>