add ftp and ncbi links to sequenced accession info
[sgn.git] / mason / stock / sequencing_status.mas
blob9e1c9faa111250821687e3768a45ab5646d88366
2 <%args>
3 $stock_id
4 </%args>
6 <& /util/import_javascript.mas,
7   entries => ["sequenced_accessions"]
8 &>
11 <div class="modal fade" id="edit_sequencing_info_dialog" role="dialog">
12     <div class="modal-dialog" role="modal">
13         <div class="form-search">
14             <div class="modal-content">
15                 <div class="modal-header">
16                     <button type="button" class="close" data-dismiss="modal" aria-label="Close"><div aria-hidden="true">&times;</div></button>
17                     <h5 class="modal-title">Enter sequencing info for accession:</h5>
18                 </div> <!-- modal-header -->
19                 <form id="sequencing_info_form" class="form-horizontal">
20                     <div class="modal-body">
21                         <div class="row">
22                             <label class="col-sm-3 control-label">Organization: </label>
23                             <div class="col-sm-9">
24                                 <input type="text" class="form-control" alt="Organization" placeholder="Sequencing organization" name="organization" id="organization" size="30" /><br />
25                             </div>
26                         </div>
27                         <div class="row">
28                             <label class="col-sm-3 control-label">Year: </label>
29                             <div class="col-sm-9">
30                                 <input type="text" class="form-control" placeholder="Sequencing year" name="sequencing_year" id="sequencing_year" size="6" /><br />
31                             </div>
32                         </div>
33                         <div class="row">
34                             <label class="col-sm-3 control-label">Website: </label>
35                             <div class="col-sm-9">
36                                 <div class="input-group">
37                                     <span class="input-group-addon" id="https-prefix">https:&sol;&sol;</span>
38                                     <input type="text" class="form-control" placeholder="Website" aria-label="https-prefix" aria-describedby="https-prefix" name="website"  id="website" size="10" />
39                                 </div>
40                             </div> <!-- input-group -->
41                             <br />
42                         </div>
43                         <div class="row">
44                             <label class="col-sm-3 control-label">Contact email: </label>
45                             <div class="col-sm-9">
46                                 <input type="text" class="form-control" placeholder="Contact email" name="contact_email"  id="contact_email" size="10" /><br />
47                             </div>
48                         </div>
49                         <div class="row">
50                             <label class="col-sm-3 control-label">Genbank accession: </label>
51                             <div class="col-sm-9">
52                                 <input type="text" class="form-control" placeholder="Genbank Accession" name="genbank_accession"  id="genbank_accession" size="10" /><br />
53                             </div>
54                         </div>
55                         <div class="row">
56                             <label class="col-sm-3 control-label">Funding agency: </label>
57                             <div class="col-sm-9">
58                                 <input type="text" class="form-control" placeholder="Funding organization" name="funded_by"  id="funded_by" size="10" /><br />
59                             </div>
60                         </div>
61                         <div class="row">
62                             <label class="col-sm-3 control-label">Funding agency project id: </label>
63                             <div class="col-sm-9">
64                                 <input type="text" class="form-control" placeholder="Funding organization project ID"  name="funder_project_id" id="funder_project_id" size="10" /><br />
65                             </div>
66                         </div>
67                         <div class="row">
68                             <label class="col-sm-3 control-label">JBrowse link: </label>
69                             <div class="col-sm-9">
70                                 <input type="text" class="form-control" placeholder="Jbrowse link" name="jbrowse_link" id="jbrowse_link" size="20" /><br />
71                             </div>
72                         </div>
73                         <div class="row">
74                             <label class="col-sm-3 control-label">BLAST link</label>
75                             <div class="col-sm-9">
76                                 <input type="text" class="form-control" placeholder="BLAST link" name="blast_link" id="blast_link" size="20" /><br />
77                             </div>
78                         </div>
79                         <div class="row">
80                             <label class="col-sm-3 control-label">FTP link</label>
81                             <div class="col-sm-9">
82                                 <input type="text" class="form-control" placeholder="FTP link" name="ftp_link" id="ftp_link" size="20" /><br />
83                             </div>
84                         </div>
85                         <div class="row">
86                             <label class="col-sm-3 control-label">NCBI link</label>
87                             <div class="col-sm-9">
88                                 <input type="text" class="form-control" placeholder="NCBI link" name="ncbi_link" id="ncbi_link" size="20" /><br />
89                             </div>
90                         </div>                        
91                         <div>
92                             <input type="hidden" id="sequencing_status_stock_id"  name="sequencing_status_stock_id" value="<% $stock_id %>" />
93                             <input type="hidden" id="stockprop_id"  name="stockprop_id" />
94                         </div>
95                     </div> <!-- modal-body -->
96                     <div class="modal-footer">
97                         <button type="submit"  class="btn btn-primary">Save changes</button>
98                         <button id="dismiss_sequencing_info_dialog" type="button" class="btn btn-secondary" >Close</button>
99                     </div> <!-- modal-footer -->
100                 </form> <!-- sequencing_info form -->
101             </div> <!-- modal-content -->
102         </div> <!-- form-search -->
103     </div> <!-- modal-dialog -->
104 </div> <!-- modal -->
106 <table id="sequenced_stocks_table" class="display" style="width:100%">
107     <thead>
108         <tr>
109             <th>Accession</th>
110             <th>Year</th>
111             <th>Organization</th>
112             <th>Website</th>
113             <th>Analyze</th>
114             <th>Manage</th>
115         </tr>
116     </thead>
117 </table>
119 <div id="sequenced_stocks_div">
120 </div>
122 <script>
123 jQuery(document).ready( function() {
124     var sequenced_stocks = window.jsMod['sequenced_accessions'].init("sequenced_stocks_div", <% $stock_id %>);
126 </script>
129 <br />