graphical filtering of accession search
[sgn.git] / mason / breeders_toolbox / breeder_search_download.mas
blobbdca2d21e6e11cd41169734b7982d2a765b7d6b6
1 <%args>
3 </%args>
5 <& /util/import_javascript.mas, classes => [ 'jqueryui', 'jquery.cookie', 'CXGN.BreederSearch', 'CXGN.List', 'CXGN.BreedersToolbox.HTMLSelect', 'spin_min', 'ladda_min' ] &>
7 <div class="modal fade" id="download_wizard_phenotypes_dialog" name="download_wizard_phenotypes_dialog" tabindex="-1" role="dialog" aria-labelledby="downloadWizardPhenotypesDialog">
8   <div class="modal-dialog" role="document">
9     <div class="modal-content">
10       <div class="modal-header">
11         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
12         <h4 class="modal-title" id="downloadWizardPhenotypesDialog">Download Phenotypes</h4>
13       </div>
14       <div class="modal-body">
15         <div class="container-fluid">
17                <form class="form-horizontal" id="wizard_download_phenotypes_form" role="form" method="post" >
18                 <div class="form-group">
19                 <label class="col-sm-3 control-label">Format: </label>
20                 <div class="col-sm-9" >
21                     <select class="form-control" id="download_wizard_phenotypes_format">
22                         <option value="csv">CSV</option>
23                         <option value="xls">Excel (xls)</option>
24                     </select>
25                 </div>
26                 </div>
27             <div class="form-group">
28                 <label class="col-sm-3 control-label">Data Level: </label>
29                 <div class="col-sm-9" >
30                     <select class="form-control" id="download_wizard_phenotypes_level_option">
31                         <option value="plot">Plots</option>
32                         <option value="plant">Plants</option>
33                         <option value="all">All</option>
34                     </select>
35                 </div>
36             </div>
38 <&| /page/info_section.mas, title=>"Additional Search Options",  collapsible => 1, collapsed=>1 &>
40             <div class="form-group">
41                 <label class="col-sm-3 control-label">Include Timestamps: </label>
42                 <div class="col-sm-9" >
43                     <select class="form-control" id="download_wizard_phenotypes_timestamp_option">
44                         <option value="0">No</option>
45                         <option value="1">Yes</option>
46                     </select>
47                 </div>
48             </div>
50             <div class="form-group">
51                 <label class="col-sm-3 control-label">Trait Name Contains: </label>
52                 <div class="col-sm-9" >
53                     <input id="download_wizard_phenotype_trait_contains" name="download_wizard_phenotype_trait_contains" type="text" class="form-control" placeholder="Example: storage root,oxoglutarate"/>
54                 </div>
55             </div>
57             <div class="row">
58                 <div class="col-sm-6">
59                     <div class="form-group">
60                         <label class="col-sm-8 control-label">Minimum Phenotype Value: </label>
61                         <div class="col-sm-4" >
62                             <input id="download_wizard_phenotype_phenotype_min" name="download_wizard_phenotype_phenotype_min" type="number" class="form-control" />
63                         </div>
64                     </div>
65                 </div>
66                 <div class="col-sm-6">
67                     <div class="form-group">
68                         <label class="col-sm-8 control-label">Maximum Phenotype Value: </label>
69                         <div class="col-sm-4" >
70                             <input id="download_wizard_phenotype_phenotype_max" name="download_wizard_phenotype_phenotype_max" type="number" class="form-control" />
71                         </div>
72                     </div>
73                 </div>
74             </div>
75 </&>
76 <&| /page/info_section.mas, title=>"Data Not Showing?",  collapsible => 1, collapsed=>1 &>
77             <div class="form-group">
78                 <label class="col-sm-3 control-label">Download Type: </label>
79                 <div class="col-sm-9" >
80                     <label class="radio-inline" title="Optimizes completeness using an exhaustive search. May result in longer download times."><input type="radio" name="search_type" id="search_type" value="complete">Complete</label>
81                     <label class="radio-inline" title="Optimizes speed using the database cache. May exclude most recently uploaded data."><input type="radio" name="search_type" id="search_type" value="fast" checked>Fast (plots only)</label>
82                 </div>
83             </div>
84 </&>
86         </form><br/>
88         </div>
89       </div>
90       <div class="modal-footer">
91         <button type="button" class="btn btn-default" name="download_wizard_phenotypes_cancel_button" id="download_wizard_phenotypes_cancel_button" data-dismiss="modal">Close</button>
92         <button type="button" class="btn btn-primary" name="download_wizard_phenotypes_submit_button" id="download_wizard_phenotypes_submit_button" title="Submit">Submit</button>
93       </div>
94     </div>
95   </div>
96 </div>
99 <table class="table borderless" alt="breeder search" border="0" ><tr>
100         <td>
101     <div>
102         <p>Phenotypes:
103                 <button class="btn btn-primary" id="wizard_download_phenotypes_button" disabled="disabled" data-style="expand-right" title="To download, you must be logged in with a filter selected">Download Phenotypes</button>
104         </div>
105         </td>
106         <td>
107         <div class="well well-sm pull-right" style="min-width: 200px;overflow:auto;"><div id="selected_trials">No trials selected</div>
108         </td>
109         </tr>
110         <tr>
111         <td>
112         <div>
113         <p>Genotypes:
114                 <button class="btn btn-primary ladda-button" id="download_button_genotypes" disabled="disabled" data-style="expand-right" title="To download, you must be logged in with accessions or trials selected"><span class="ladda-label">Download Genotypes</span><span class="ladda-spinner"></span></button>
115         </div>
116         </td>
117         <td>
118         <div class="well well-sm pull-right" style="min-width: 200px;overflow:auto;"><div><p id="selected_accessions">No accessions selected</p><p id="selected_genotyping_protocols">No genotyping protocols selected. Default wull be used.</p></div>
119         </td>
120         </tr>
121 </table>