fix to comments in patch
[sgn.git] / mason / stock / new_stock.mas
blobed57a76227233a41193cd70662797628f9c146ea
2 <%args>
3 $stockref => undef
4 </%args>
6 % my $stock_id = $stockref->{stock_id};
8 <& /page/page_title.mas, title=> 'Create a New Stock' &>
11 <&| /page/info_section.mas, title=>"Stock details"  &>
13 <div class="row">
14   <div class="col-sm-12">
16   <& /page/form.mas,
17   object_type=>'stock',
18   object_id=>"$stock_id",
19   form_name=> 'stock_form',
20   server_side_script => '/phenome/stock/stock_ajax_form.pl',
21   form_div_name=>'stock_details',
22   js_object_name=> 'stockForm',
23   page_url => "/stock/$stock_id/view/" ,
24   alternate_new_button => '<a href ="/stock/0/new">[New]</a>'
25   &>
27   </div>
28 </div>
30 </&>
32 <script language="javascript">
33 function jqueryStuff() { 
34    jQuery(function() {
35      jQuery("#species_name").autocomplete({
36         source: '/organism/autocomplete'
37      });
38   });
40 </script>