Merge pull request #5230 from solgenomics/topic/open_pollinated
[sgn.git] / mason / breeders_toolbox / upload_pedigrees_dialogs.mas
blob8bafd6cfccd14525b21311a0013b24d09f887672
1 <%args>
2 </%args>
4 <div class="modal fade" id="upload_pedigrees_validate_display" name="upload_pedigrees_validate_display" tabindex="-1" role="dialog" aria-labelledby="uploadPedigreesValidateDialog">
5   <div class="modal-dialog modal-lg" role="document">
6     <div class="modal-content">
7       <div class="modal-header">
8         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
9         <h4 class="modal-title" id="uploadPedigreesValidateDialog">Results From Validation</h4>
10       </div>
11       <div class="modal-body">
12         <div class="container-fluid">
13             <div class="well">To Overwrite Parents In the Case That An Accession Already Has Male or Female Parents <input type="checkbox" checked id="pedigree_upload_overwrite_pedigrees" /></div>
14           <table class="table table-hover">
15             <tbody></tbody>
16           </table>
17         </div>
18       </div>
19       <div class="modal-footer">
20         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
21         <button type="button" class="btn btn-primary" name="upload_pedigrees_store" id="upload_pedigrees_store" data-dismiss="modal">Store</button>
22       </div>
23     </div>
24   </div>
25 </div>
27 <div class="modal fade" id="upload_pedigrees_error_display" name="upload_pedigrees_error_display" tabindex="-1" role="dialog" aria-labelledby="uploadPedigreesErrorDialog">
28   <div class="modal-dialog modal-lg" role="document">
29     <div class="modal-content">
30       <div class="modal-header">
31         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
32         <h4 class="modal-title" id="uploadPedigreesErrorDialog">Results From Validation</h4>
33       </div>
34       <div class="modal-body">
35         <table class="table table-hover">
36           <tbody></tbody>
37         </table>
38       </div>
39       <div class="modal-footer">
40         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
41       </div>
42     </div>
43   </div>
44 </div>
46 <div class="modal fade" id="pedigrees_upload_success_dialog_message" name="pedigrees_upload_success_dialog_message" tabindex="-1" role="dialog" aria-labelledby="uploadPedigreesSuccessDialog">
47   <div class="modal-dialog modal-lg" role="document">
48     <div class="modal-content">
49       <div class="modal-header">
50         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
51         <h4 class="modal-title" id="uploadPedigreesSuccessDialog">Upload Successful</h4>
52       </div>
53       <div class="modal-body">
54         <div class="container-fluid">
55           <h4>The Pedigree Upload Finished With No Errors.</h4>
56         </div>
57       </div>
58       <div class="modal-footer">
59         <button type="button" id="pedigrees_upload_success_dismiss" class="btn btn-default" data-dismiss="modal">Close</button>
60       </div>
61     </div>
62   </div>
63 </div>
65 <div class="modal fade" id="upload_pedigrees_dialog" name="upload_pedigrees_dialog" tabindex="-1" role="dialog" aria-labelledby="uploadPedigreesDialog">
66     <div class="modal-dialog modal-lg" role="document">
67         <div class="modal-content">
68             <div class="modal-header">
69                 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
70                 <h4 class="modal-title" id="uploadPedigreesDialog">Upload Pedigrees</h4>
71             </div>
72             <div class="modal-body">
73                 <div class="container-fluid">
74                     <&| /page/explanation.mas, title=>'Template Information' &>
75                         <p>
76                             <b>File format information</b>
77                             <br>
78                             <a id="pedigrees_upload_spreadsheet_format_info">Spreadsheet Format</a>
79                         </p>
80                     </&>
81                     <form method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_pedigrees_form" name="upload_pedigrees_form">
82                         <div class="form-group">
83                             <label class="col-sm-4 control-label">Upload Pedigree File: </label>
84                             <div class="col-sm-8" >
85                                 <input type="file" name="pedigrees_uploaded_file" id="pedigrees_uploaded_file" encoding="multipart/form-data" />
86                             </div>
87                         </div>
88                     </form>
89                 </div>
90             </div>
91             <div class="modal-footer">
92                 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
93                 <button type="button" class="btn btn-primary" name="upload_pedigrees_dialog_submit" id="upload_pedigrees_dialog_submit">Validate</button>
94             </div>
95         </div>
96     </div>
97 </div>
99 <div class="modal fade" id="pedigrees_upload_spreadsheet_info_dialog" name="pedigrees_upload_spreadsheet_info_dialog" tabindex="-1" role="dialog" aria-labelledby="pedigreeUploadInfoDialog">
100   <div class="modal-dialog modal-xl" role="document">
101     <div class="modal-content">
102       <div class="modal-header">
103         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
104         <h4 class="modal-title" id="pedigreeUploadInfoDialog">Template Information</h4>
105       </div>
106       <div class="modal-body">
107         <div class="container-fluid">
108         <& /help/file_upload_type.mas, type => "Pedigrees", optional_column => 0 &>
109           <hr>
110           <b>Header:</b>
111           <br>
112           <p>The first row (header) should contain the following:</p>
114           <table class="table table-hover table-bordered">
115           <body>
116             <tr>
117               <td>progeny name</td>
118               <td>female parent accession</td>
119               <!--<td>male parent accession(s) (if more than one, separate using commas)</td>-->
120               <td>male parent accession</td>
121               <td>type</td>
123             </tr>
124           </body>
125           </table>
127           <h4>Required fields:</h4>
128           <ul>
129         <li>progeny name (must exist in the database and can be accession uniquename or accession synonym)</li>
130         <li>female parent accession (must exist in the database)</li>
131         <li>type (biparental, self, open, backcross, sib, polycross, reselected)</li>
132             <ul class="a">
133                 <li>cross type descriptions:</li>
134                 <ul class="b">
135                     <li>biparental: An individual plant pollinated by another individual plant.</li>
136                     <li>self: A self pollinated individual plant.</li>
137                     <li>open: An individual plant pollinated by a group of plants or open pollinated (pollen may be from a group with known or unknown members).</li>
138                     <li>backcross: An individual plant pollinated by one of its parents.</li>
139                     <li>sib: Mating between individuals that have at least one parent in common. Generally between two individuals within the same plot.</li>
140                     <li>polycross: Mating between individual female parent from a population and the corresponding male population.</li>
141                     <li>reselected: Selection of a new accession from an existing line (e.g. caused by a mutation).</li>
142                     <li>doubled_haploid: Chromosome doubling of a haploid plant.</li>
143                     <li>dihaploid_induction: Generation of dihaploids from a tetraploid plant.</li>
144                 </ul>
145             </ul>
146       </ul>
148           <h4>Optional fields</h4>
149           <ul>
150         <li>male parent accession (can be accession uniquename or accession synonym or population name). Required for most cross types. </li>
151           </ul>
153           <h4>Notes</h4>
154           <ul>
155             <li>Always specify the type of the cross (biparental, self, open, sib, backcross, polycross or reselected).</li>
156             <li>If the type is open and no potential male parent is known, leave the male parent field empty.</li>
157              <li>For all other cases, list both known parents, even if they are the same, such as in the case of self.</li>
158           </ul>
159         </div>
160       </div>
161       <div class="modal-footer">
162         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
163       </div>
164     </div>
165   </div>
166 </div>