remove variable attribute section for traits.
[sgn.git] / mason / genefamily / manual / index.mas
blob0ba70d6ab27e058a1b55686dddb3cfdcd3fcb6fa
1 <%doc>
3 =head1 NAME
5 /genefamily/manual/index.mas - a component for displaying manually curated gene families
7 =head1 DESCRIPTION
10 Parameters:
12 =over 2
14 =item hashref
16 hashref with all the parameters needed for printing the curated gene family page
18 =item locus_add_uri
19  uri for adding a locus to the gene family
21 =back
23 =head1 AUTHOR
25 Naama Menda <nm249@cornell.edu>
27 =cut
30 </%doc>
32 <%args>
34 $hashref
35 $locus_add_uri => '/ajax/locus/associate_locus'
36 $members_div   => 'locusgroup_members'
38 </%args>
40 <%perl>
42 my $genefamily = $hashref->{genefamily};
43 my $locusgroup_id = $genefamily->get_locusgroup_id;
44 my $this_page = "/genefamily/manual/$locusgroup_id/view/";
46 my $curator = $hashref->{curator};
47 my $submitter = $hashref->{submitter};
48 my $sequencer = $hashref->{sequencer};
50 #############
51 my $add_locus_link = $curator || $submitter || $sequencer  ?
52   '<a href="javascript:Tools.toggleContent(\'associateLocusForm\', \'locus_network\');Tools.getOrganisms()">[Associate new locus]</a> ' :
53   '<span class="ghosted">[Associate new locus]</span>' ;
54 ############
57 </%perl>
60 <& /util/import_javascript.mas, classes => ["CXGN.Page.FormattingHelpers", "CXGN.Phenome.Locus", "CXGN.Phenome.Tools", "CXGN.Sunshine.NetworkBrowser"] &>
63 <script language="javascript">
64 </script>
67 <& /page/page_title.mas, title=> "Gene family ". $genefamily->get_locusgroup_name &>
69 <&| /page/info_section.mas, title=>"Gene family details"  &>
72   <& /page/form.mas,
73   object_type          => 'locusgroup',
74   object_id            => "$locusgroup_id",
75   form_name            => 'genefamily_form',
76   server_side_script   => '/jsforms/locusgroup_ajax_form.pl',
77   form_div_name        => 'genefamily_details',
78   js_object_name       => 'locusgroupForm',
79   page_url             => "/genefamily/$locusgroup_id/view/",
80   alternate_new_button => ''
81   &>
83 </&>
85 <&| /page/info_section.mas,
86     title       => "Gene family members",
87     subtitle    => "$add_locus_link",
88     id          => "locus_network",
89     collapsible => 1,
90     collapsed   => 0
93   <& /genefamily/manual/add_locus.mas, locusgroup_id=>$locusgroup_id &>
94     <& /genefamily/manual/members.mas , locusgroup_id => $locusgroup_id, members_div => $members_div  &>
96 </&>
98 <& /page/comments.mas, object_type=>'locusgroup', object_id=>$locusgroup_id, referer=>$this_page &>