Merge pull request #4106 from solgenomics/topic/wishlist
[sgn.git] / mason / solgs / population / selection_populations.mas
blobe209cc01d43c842fa184afb6cf4f2f0d9a5d3620
1 <%doc>
3 displays list of prediction populations and their GS output.
5 </%doc>
7 <%args>
9 $result => ''
10 $selection_prediction_download
11 $training_pop_analyzed_traits
12 $training_pop_id
13 $training_pop_name
14 $selection_pop_id
15 $selection_pop_name => ''
16 $list_of_prediction_pops => ''
17 $selection_pop_analyzed_traits => ''
19 </%args>
21 <%perl>
23 my $title;
25 if ($c->req->path =~ /solgs\/traits\/all\/population/) {
26     $title = 'Predict GEBVs of a selection population using the models';
27   } else {
28  $title = 'Predict GEBVs of a selection population using the model';
31 </%perl>
34 <& /util/import_javascript.mas, classes => ["solGS.solGS", "solGS.Dataset", "jquery.dataTables", "solGS.selectionPopulations",  "solGS.ajaxAutocomplete"] &>
36 <& /util/import_css.mas, paths => ['/documents/inc/datatables/jquery.dataTables.css'] &>
38 <&| /page/info_section.mas,
39     collapsible => 1,
40     collapsed   => 0,
41     title       => $title,
44   <div  class="form-inline">
45     <input  type="text"
46             class="form-control"
47             placeholder="search for a selection population"
48             size="30" id="population_search_entry"/>
50     <button type="submit"
51             class="btn btn-success"
52             id="search_selection_pop">
53       <span class="glyphicon glyphicon-search"></span>
54     </button>
55 <div style="color:red" id="form-feedback-search-trials"> </div>
56   <!-- <button id="search_all_selection_pops" style="position:absolute;right:20px;display:none;" class="btn btn-success" type="submit">  -->
57   <!--     <span value="Search for all relevant selection populations">Search for all relevant selection populations</span>  -->
58   <!--   </button> -->
59   </div>
62   <div id="selection_pops_message"  class="message"></div>
64   <div id="selection_populations" style="display:none;">
65     <table class="table" id="selection_pops_list" style="text-align:left;">
66       <thead>
67         <tr>
68           <th>Selection population</th>
69           <th>Description</th>
70           <th>Year</th>
71       <th>More details</th>
72           <th>View GEBVs</th>
73         </tr>
74       </thead>
75   </table>
76   </div>
78   <br />
80   <& /solgs/search/list_type_selection_population.mas &>
82 </&>