check file name
[sgn.git] / mason / solgs / tools / select_menu.mas
blob2d582bc7794c53dcad58c7ceb010de1fcf32102c
1 <%doc>
3 =head1 NAME
5 /solgs/tools/select_menu.mas -  analysis select menu of datasets or lists of trials or plots or accessions with phenotype data or genotype data
7 =AUTHOR
9 Isaak Y Tecle (iyt2@cornell.edu)
11 =cut
13 </%doc>
15 <%args>
16 $analysis_type
17 $wizard_link_txt => ''
18 $breeder_search_params =>''
19 </%args>
20 <%perl>
21 my $label = $analysis_type =~ s/_/ /gr;
22 my $analysis_abbr = $analysis_type =~ /correlation/ ? 'corr' : $analysis_type;
23 $wizard_link_txt = 'Create a new list or dataset' if !$wizard_link_txt;
24 </%perl>
26 <& /util/import_css.mas, paths => ['/static/css/solgs/solgs.css'] &>
27 <& /util/import_javascript.mas, classes => [ "solGS.Dataset", "CXGN.List", "solGS.selectMenu"] &>
29 <div id="select_menu" style="padding-top: 20px;">
30   <div class="select_menu_block" id="<% $analysis_type %>_pops_label">
31     <label for="<% $analysis_abbr %>_pops_label">Select a population</label>
32   </div>
33   <div class="select_menu_block" id="<% $analysis_abbr %>_pops_select_div"></div>
34   <div class="select_menu_block go_btn" id="<% $analysis_abbr %>_pop_go_btn">
35     <input type="button" value="View" />
36   </div>
37   <div class="select_menu_block" >
38     <i class="glyphicon-plus"></i>
39     <a href="/solgs/breeder_search/<% $breeder_search_params %>" style="color:#ffffff"><%
40     $wizard_link_txt %></a>
41     </div>
43   <br>
44   <br>
45     <!-- The container for the list of populations selected for analysis -->
46     <div class="sub_infosectioncontent" id="<% $analysis_abbr %>_pops_selected" style="display:none"></div>
47     <br>
49 </div>