Merge pull request #4249 from solgenomics/topic/add_treatments_to_dl
[sgn.git] / mason / stock / additional_info_section.mas
blobe9c6311069b562acd9167cb41609610a09d204a1
1 <%args>
2 $stock_id
3 $type_name
4 $stockref => {}
5 $stockprops
6 $edit_privs
7 $editable_stock_props
8 $editor_link
9 $source_dbs => {}
10 $new_locus_link => ''
11 $locus_add_uri
12 $allele_div
13 $is_owner
14 </%args>
16 <div class="panel panel-default">
17     <div class="panel-body panel-body-sm">
19         <&| /page/info_section.mas, title => "Synonyms", is_subsection => 1 &>
20             <& /stock/stockprops.mas,
21                stock_id    => $stock_id,
22                 form_div_id => 'stock_add_synonym',
23                 props      => $stockprops ,
24                 div_name   =>'synonyms',
25                 subset     => [ 'stock_synonym', 'solcap number'],
26                 editable   => [ 'stock_synonym' ],
27                 edit_privs => $edit_privs   &>
28         </&>
30     </div>
31 </div>
33 <div class="panel panel-default">
34     <div class="panel-body panel-body-sm">
36         <&| /page/info_section.mas, title => "Additional information", is_subsection => 1 &>
37             <& /stock/stockprops.mas,
38                 stock_id  =>$stock_id,
39                 form_div_id => 'stock_add_props',
40                 props      => $stockprops,
41                 div_name   => 'stockprops',
42                 edit_privs => $edit_privs,
43                 subset     => $editable_stock_props,
44                 editable   => $editable_stock_props  &>
45         </&>
47     </div>
48 </div>
50 <div class="panel panel-default">
51     <div class="panel-body panel-body-sm">
52         <b>Stock editors: </b>
53         <br/>
54         <% $editor_link %>
55     </div>
56 </div>
58 <div class="panel panel-default">
59     <div class="panel-body panel-body-sm">
60         <b>External Database Links: </b>
61         <ul>
62 % foreach my $db_url (keys %$source_dbs) {
63             <li>
64                 <a href="<% $db_url %>" ><% $source_dbs->{$db_url} %></a>
65             </li>
66 % }
67         </ul>
68     </div>
69 </div>
71 % if ($type_name eq 'accession'){
72     <div class="panel panel-default">
73         <div class="panel-body panel-body-sm">
75             <&| /page/info_section.mas, title => "Associated loci (" . $stockref->{allele_count} . ")" , subtitle => $new_locus_link, collapsible=> 1 , collapsed => 1 &>
76                 <& /phenome/associate_locus.mas, object_id => $stock_id , object_name => "stock", locus_add_uri=> $locus_add_uri,   allele_div => $allele_div , show_form => $is_owner &>
77             </&>
78         </div>
79     </div>
80 % }