Changed trials-in-common page to use a single database query to get analyses. Changed...
[sgn.git] / mason / breeders_toolbox / upload_graft_dialogs.mas
blob0332305dcb94e05d627bd974c034c81850e5a801
1 <%args>
2 </%args>
4 <div class="modal fade" id="upload_graft_validate_display" name="upload_graft_validate_display" tabindex="-1" role="dialog" aria-labelledby="uploadGraftValidateDialog">
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="uploadGraftValidateDialog">Results From Validation</h4>
10       </div>
11       <div class="modal-body">
12         <div class="container-fluid">
13           <!-- div class="well">To Overwrite previous scion and/or rootstocks, in the case that an accession already has scions/rootstocks <input type="checkbox" checked id="graft_upload_overwrite_graft" /></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_graft_store" id="upload_graft_store" data-dismiss="modal">Store</button>
22         
23       </div>
24     </div>
25   </div>
26 </div>
29 <div class="modal fade" id="graft_upload_success_dialog_message" name="graft_upload_success_dialog_message" tabindex="-1" role="dialog" aria-labelledby="uploadGraftSuccessDialog">
30   <div class="modal-dialog" role="document">
31     <div class="modal-content">
32       <div class="modal-header">
33         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
34         <h4 class="modal-title" id="uploadGraftSuccessDialog">Upload Successful</h4>
35       </div>
36       <div class="modal-body">
37         <div class="container-fluid">
38           <h2>The graft upload was successful.</h2>
40           Successfully created:<br />
41           <textarea id="list_of_uploaded_grafts">
42           </textarea>
43           <br />
44           
45           Already in the system:<br />
46           <textarea id="list_of_already_uploaded_grafts">
47           </textarea>
49           <div id="list_of_grafts_with_problem"></div>
50         </div>
51       </div>
52       <div class="modal-footer">
53         <button type="button" id="graft_upload_success_dismiss" class="btn btn-default" data-dismiss="modal">Close</button>
54       </div>
55     </div>
56   </div>
57 </div>
60 <div class="modal fade" id="upload_graft_dialog" name="upload_graft_dialog" tabindex="-1" role="dialog" aria-labelledby="uploadGraftDialog">
61   <div class="modal-dialog" role="document">
62     <div class="modal-content">
63       <div class="modal-header">
64         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
65         <h4 class="modal-title" id="uploadGraftDialog">Upload Grafting Information</h4>
66       </div>
67       <div class="modal-body">
68         <div class="container-fluid">
69           <&| /page/explanation.mas, title=>'Template Information' &>
70           <p>
71           <b>File format information</b>
72           <br>
73           <a id="graft_upload_spreadsheet_format_info" data-toggle='modal' data-target='#graft_upload_spreadsheet_format_info_dialog'>Spreadsheet Format</a>
74           </p>
75           </&>
77           <form method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_graft_form" name="upload_graft_form">
78             <label for="graft_uploaded_file" style="display: inline-block; width: 100px;">Upload Grafting File:</label>
79             <input type="file" name="graft_uploaded_file" id="graft_uploaded_file" encoding="multipart/form-data" />
80           </form>
81         </div>
82       </div>
83       <div class="modal-footer">
84         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
85         <button type="button" class="btn btn-primary" name="upload_graft_dialog_submit" id="upload_graft_dialog_submit">Validate</button>
86       </div>
87     </div>
88   </div>
89 </div>
91 <div class="modal fade" id="graft_upload_spreadsheet_format_info_dialog" name="graft_upload_spreadsheet_info_dialog" tabindex="-1" role="dialog" aria-labelledby="graftUploadInfoDialog">
92   <div class="modal-dialog" role="document">
93     <div class="modal-content">
94       <div class="modal-header">
95         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
96         <h4 class="modal-title" id="graftUploadInfoDialog">Template Information</h4>
97       </div>
98       <div class="modal-body">
99         <div class="container-fluid">
100           <b>Graft may be uploaded in tab-delimited text file format</b>
101           <br>
102           <p>(.xls or .xlsx formats are <b>NOT</b> supported)</p>
103           <hr>
104           <b>Header:</b>
105           <br>
106           <p>The first row (header) should contain the following:</p>
107           
108           <table class="table table-hover table-bordered">
109           <body>
110             <tr>
111               <td>scion accession</td>
112               <td>rootstock accession</td>
113             </tr>
114           </body>
115           </table>
116           
117           <h4>Required fields:</h4>
118           <ul>
119             <li>scion accession (exact name must exist in the database)</li>
120             <li>rootstock accession (must exist in the database)</li>
121           </ul>
122           
123           <h4>Notes</h4>
124           <ul>
125             <li>The graft accession will be created in the database upon upload. The name of the graft will be "scion"+"rootstock", where "+" is the default graft separator character. The default separator can be changed before upload. The default can be changed in the sgn_local.conf, default_graft_separator key.
126           </ul>
127         </div>
128         
129         <div class="modal-footer">
130           <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
131         </div>
132       </div>
133     </div>
134   </div>
135 </div>