Merge pull request #4106 from solgenomics/topic/wishlist
[sgn.git] / mason / phenome / associate_accession_form.mas
blob38e89f0526e059da914723d5e368eb9884275322
3 <%doc>
5 =head1 NAME
7 /phenome/associate_accession_form.mas - a component for js code for associating accession
9 =head1 DESCRIPTION
12 Parameters:
14 =over 2
16 =item locus_id
18 a locus id
21 =item person_id
23 The ID of the logged in person 
27 =back
29 =head1 AUTHOR
31 Naama Menda <nm249@cornell.edu>
33 =cut 
35 </%doc>
37 <%args>
40 $locus_id
41 $person_id
44 </%args>
46 <%perl>
48 </%perl>
51 <div id="associateStockForm" style="display: none">
52   Accession name:
53   <input type="text"
54          style="width: 50%"
55          id="locus_name"
56          onkeyup="Locus.getStocks(this.value, '<% $locus_id %>');">
57   <input type="button"
58          id="associate_stock_button"
59          value="associate accession"
60          disabled="true"
61          onclick="Locus.associateAllele('<% $person_id %>');this.disabled=true;">
62   <select id="stock_select"
63           style="width: 100%"
64           onchange="Locus.getAlleles('<% $locus_id %>')"
65           size=10>
66   </select>
67   
68   <b>Would you Like to specify an allele?</b>
69   <select id="allele_select"
70           style="width: 100%">
71   </select>
72   
73 </div>