Merge pull request #4106 from solgenomics/topic/wishlist
[sgn.git] / mason / stock / new_stock.mas
bloba1a697d07f2460eb7934ffc5376b47eed3dab03a
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 class="btn btn-sm btn-default" 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>