Merge pull request #2754 from solgenomics/topic/fix_homepage_add_accessions_dialog
[sgn.git] / mason / breeders_toolbox / upload_pedigrees_dialogs.mas
blob1cefcbce4f0c3cff5a6492ede59fbe78079f39ce
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" 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>
28 <div class="modal fade" id="pedigrees_upload_success_dialog_message" name="pedigrees_upload_success_dialog_message" tabindex="-1" role="dialog" aria-labelledby="uploadPedigreesSuccessDialog">
29   <div class="modal-dialog" role="document">
30     <div class="modal-content">
31       <div class="modal-header">
32         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
33         <h4 class="modal-title" id="uploadPedigreesSuccessDialog">Upload Successful</h4>
34       </div>
35       <div class="modal-body">
36         <div class="container-fluid">
37           <h2>The Pedigree Upload Finished With No Errors.</h2>
38         </div>
39       </div>
40       <div class="modal-footer">
41         <button type="button" id="pedigrees_upload_success_dismiss" class="btn btn-default" data-dismiss="modal">Close</button>
42       </div>
43     </div>
44   </div>
45 </div>
48 <div class="modal fade" id="upload_pedigrees_dialog" name="upload_pedigrees_dialog" tabindex="-1" role="dialog" aria-labelledby="uploadPedigreesDialog">
49   <div class="modal-dialog" role="document">
50     <div class="modal-content">
51       <div class="modal-header">
52         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
53         <h4 class="modal-title" id="uploadPedigreesDialog">Upload Pedigrees</h4>
54       </div>
55       <div class="modal-body">
56         <div class="container-fluid">
57           <&| /page/explanation.mas, title=>'Template Information' &>
58           <p>
59           <b>File format information</b>
60           <br>
61           <a id="pedigrees_upload_spreadsheet_format_info">Spreadsheet Format</a>
62           </p>
63           </&>
65           <form method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_pedigrees_form" name="upload_pedigrees_form">
66             <label for="pedigrees_uploaded_file" style="display: inline-block; width: 100px;">Upload Pedigree File:</label>
67             <input type="file" name="pedigrees_uploaded_file" id="pedigrees_uploaded_file" encoding="multipart/form-data" />
68           </form>
69         </div>
70       </div>
71       <div class="modal-footer">
72         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
73         <button type="button" class="btn btn-primary" name="upload_pedigrees_dialog_submit" id="upload_pedigrees_dialog_submit">Validate</button>
74       </div>
75     </div>
76   </div>
77 </div>
79 <div class="modal fade" id="pedigrees_upload_spreadsheet_info_dialog" name="pedigrees_upload_spreadsheet_info_dialog" tabindex="-1" role="dialog" aria-labelledby="pedigreeUploadInfoDialog">
80   <div class="modal-dialog" role="document">
81     <div class="modal-content">
82       <div class="modal-header">
83         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
84         <h4 class="modal-title" id="pedigreeUploadInfoDialog">Template Information</h4>
85       </div>
86       <div class="modal-body">
87         <div class="container-fluid">
88           <b>Pedigrees may be uploaded in tab-delimited text file format</b>
89           <br>
90           <p>(.xls or .xlsx formats are <b>NOT</b> supported)</p>
91           <hr>
92           <b>Header:</b>
93           <br>
94           <p>The first row (header) should contain the following:</p>
96           <table class="table table-hover table-bordered">
97           <body>
98             <tr>
99               <td>progeny name</td>
100               <td>female parent accession</td>
101               <!--<td>male parent accession(s) (if more than one, separate using commas)</td>-->
102               <td>male parent accession</td>
103               <td>type</td>
105             </tr>
106           </body>
107           </table>
109           <h4>Required fields:</h4>
110           <ul>
111         <li>progeny name (must exist in the database and can be accession uniquename or accession synonym)</li>
112         <li>female parent accession (must exist in the database)</li>
113         <li>type (biparental, self, open, sib)</li>
114             <ul class="a">
115                 <li>cross type descriptions:</li>
116                 <ul class="b">
117                     <li>biparental: An individual plant pollinated by another individual plant.</li>
118                     <li>self: A self pollinated individual plant.</li>
119                     <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>
120                     <li>sib: Mating between individuals that have at least one parent in common. Generally between two individuals within the same plot.</li>
121                     <li>polycross: Mating between individual female parent from a population and the corresponding male population.</li>
122                 </ul>
123             </ul>
124           </ul>
126           <h4>Optional fields</h4>
127           <ul>
128             <!--li>male parent accession (if provided, must exist in the database). Several potential male parents can be given separated by commas. A population entry will be generated in that case, with the listed male parents associated to the population.</li-->
129         <li>male parent accession (can be accession uniquename or accession synonym or population name).</li>
130           </ul>
132           <h4>Notes</h4>
133           <ul>
134             <li>Always specify the type of the cross (biparental, self, open, sib or polycross).</li>
135             <li>If the type is open and no potential male parent is known, leave the male parent field empty
136           </ul>
137         </div>
138       </div>
139       <div class="modal-footer">
140         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
141       </div>
142     </div>
143   </div>
144 </div>