Merge pull request #4272 from solgenomics/topic/fix-vcf-download
[sgn.git] / mason / tools / nirs / manage_nirs_main.mas
blob24314b9a7f53c706fc94da6f27578a61b85bc272
1 <%args>
2 $nirs_files => undef
3 $deleted_nirs_files => undef
4 $all_nirs_files => undef
5 $all_deleted_nirs_files => undef
6 $locations => undef
7 $sampling_facilities => ()
8 </%args>
10 <& /tools/high_dimensional_phenotypes/upload_high_dim_spreadsheet_dialogs.mas &>
11 <& /tools/high_dimensional_phenotypes/download_high_dim_phenotypes_dialogs.mas &>
12 <& /tools/high_dimensional_phenotypes/download_high_dim_phenotypes_relationship_matrix_dialogs.mas &>
13 <& /tools/nirs/nirs_analysis_train_dialogs.mas &>
14 <& /tools/nirs/nirs_analysis_predict_dialogs.mas &>
15 <& /tools/nirs/nirs_analysis_plot_spectra_dialogs.mas &>
16 <& /breeders_toolbox/sampling_trials/create_sampling_trials_dialogs.mas, sampling_facilities=>$sampling_facilities &>
18 <div class="well">
19 <&| /page/info_section.mas, title=>'Uploaded NIRS Data', is_subsection=>1, collapsible=>1, collapsed=>1, subtitle=>'View and manage uploaded NIRS data files' &>
21     <&| /page/info_section.mas, title=>'Your Uploaded NIRS Data', is_subsection=>1, collapsible=>1, collapsed=>1 &>
22         <div class="panel panel-default">
23             <div class="panel-body">
24                 <& /breeders_toolbox/file_list.mas, files=>$nirs_files, allow_delete=>0 &>
25             </div>
26         </div>
27     </&>
28     <&| /page/info_section.mas, title=>'Your Obsoleted NIRS Data', is_subsection=>1, collapsible=>1, collapsed=>1, subtitle=>'These are deleted NIRS files' &>
29         <div class="panel panel-default">
30             <div class="panel-body">
31                 <& /breeders_toolbox/file_list.mas, files=>$deleted_nirs_files, allow_delete=>0 &>
32             </div>
33         </div>
34     </&>
35     <&| /page/info_section.mas, title=>'All Uploaded NIRS Data', is_subsection=>1, collapsible=>1, collapsed=>1 &>
36         <div class="panel panel-default">
37             <div class="panel-body">
38                 <& /breeders_toolbox/file_list.mas, files=>$all_nirs_files, allow_delete=>0 &>
39             </div>
40         </div>
41     </&>
42     <&| /page/info_section.mas, title=>'All Obsoleted NIRS Data', is_subsection=>1, collapsible=>1, collapsed=>1, subtitle=>'These are deleted NIRS files' &>
43         <div class="panel panel-default">
44             <div class="panel-body">
45                 <& /breeders_toolbox/file_list.mas, files=>$all_deleted_nirs_files, allow_delete=>0 &>
46             </div>
47         </div>
48     </&>
49 </&>
50 </div>
52 <div class="well">
53 <&| /page/info_section.mas, title=>'NIRS Analyses', is_subsection=>1, collapsible=>1, collapsed=>1, subtitle=>'View and manage your NIRS analyses' &>
54     <div class="panel panel-default">
55         <div class="panel-body">
56             <table class="table table-bordered table-hover" id="analyses_by_user_table">
57               <thead>
58               <tr>
59                 <th>
60                   Analysis Name
61                 </th>
62                 <th>
63                   Description
64                 </th>
65                 <th>
66                   Model Type
67                 </th>
68                 <th>
69                   Protocol
70                 </th>
71                 <th>
72                   Application
73                 </th>
74                 <th>
75                   Language
76                 </th>
77               </tr>
78               </thead>
79               <tbody>
80               </tbody>
81             </table>
82         </div>
83     </div>
84 </&>
85 </div>
88 <div class="well">
89 <&| /page/info_section.mas, title=>'Trained NIRS Models', is_subsection=>1, collapsible=>1, collapsed=>1, subtitle=>'View and manage your NIRS models' &>
90     <div class="panel panel-default">
91         <div class="panel-body">
92             <table class="table table-bordered table-hover" id="models_by_user_table">
93               <thead>
94               <tr>
95                 <th>
96                   Model Name
97                 </th>
98                 <th>
99                   Description
100                 </th>
101                 <th>
102                   Model Type
103                 </th>
104                 <th>
105                   Protocol
106                 </th>
107                 <th>
108                   Application
109                 </th>
110                 <th>
111                   Language
112                 </th>
113               </tr>
114               </thead>
115               <tbody>
116               </tbody>
117             </table>
118         </div>
119     </div>
120 </&>
121 </div>
123 <script>
124 jQuery(document).ready(function(){
125     jQuery('#analyses_by_user_table').DataTable({
126         'ajax': { 'url': '/ajax/analyses/by_user?analysis_model_type=waves_nirs_spectral_predictions' }
127     });
129     jQuery('#models_by_user_table').DataTable({
130         'ajax': { 'url': '/ajax/analyses/models/by_user?analysis_model_type=waves_nirs_spectral_predictions' }
131     });
133 </script>