7 /phenome/assign_owner.mas - a component for printing assign locus owner form
22 the type of the object (e.g. 'locus', 'stock')
25 must be logged in as a curator. Defaults to 0
27 =item sp_person_autocomplete_uri
28 defaults to '/ajax/people/autocomplete'
31 defaults to 'object_owners'
40 Naama Menda <nm249@cornell.edu>
50 $sp_person_autocomplete_uri => '/ajax/people/autocomplete/1'
53 $owners_div => 'object_owners'
56 <script language="javascript">
59 jQuery("#sp_person").autocomplete({
60 source: '<% $sp_person_autocomplete_uri %>'
64 function submit_owner_form() {
65 var sp_person = jQuery("#sp_person").val();
68 url: "<% $owner_add_uri %>" ,
70 data: 'object_id='+<% $object_id %>+'&sp_person='+sp_person ,
71 success: function(response) {
72 var error = response.error;
73 if (error) { alert(error) ; }
74 display_owners( "<% $owners_div %>" );
84 <&| /page/optional_show.mas, title => "Assign owner" &>
86 <div id="associate_owner_form">
87 Notice: 'user' account will be updated to 'submitter'
88 <div id="person_search" >
89 <form name="owner_form" >
90 <input type="text" style="width: 70%" id="sp_person" name="sp_person" value = "type first or last name"/>
91 <input type="hidden" id="object_id" name="object_id" value="<% $object_id %>" />
95 onclick="javascript:submit_owner_form()"
96 value = "Assign owner" />