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