Merge pull request #2754 from solgenomics/topic/fix_homepage_add_accessions_dialog
[sgn.git] / mason / people / profile.mas
blob0519e73b72e4ee40ae65fe31c6563cb113dd1854
2 <%args>
3 $is_users_profile => undef
4 $user_roles => undef
5 $site_name
6 $sp_person_id
7 $username
8 $first_name
9 $last_name
10 $populations_list => undef
11 $solgs_jobs_list => undef
12 $loci_editor_privileges => undef
13 $loci_annotations => undef
14 $user_status => undef
15 </%args>
18 <& /page/page_title.mas, title=>"$site_name" &>
20 <div class="container-fluid">
22     <div align="center"><b><% $first_name %> <% $last_name %></b></div>
23     <br/>
26 % if ($is_users_profile) {
28     <&| /page/info_section.mas, title=>'General Tools', collapsible=>0, collapsed=>0 &>
29         <div class="well">
30             <a href="/solpeople/personal-info.pl?action=edit&sp_person_id=<% $sp_person_id %>">View or update personal (contact and research) information</a><br />
31             <a href="/user/update">Update account information</a><br />
32             <a href="/forum/topics.pl">Post to SGN forum</a><br />
33         </div>
34     </&>
36 %   if (exists($user_roles->{'curator'}) || exists($user_roles->{'sequencer'}) ) {
38     <&| /page/info_section.mas, title=>'Sequencer Tools', collapsible=>0, collapsed=>0, subtitle=>'For Curators and Sequencers' &>
39         <div class="well">
40             <a href="/solpeople/attribute_bacs.pl">Attribute a BAC to your chromosome sequencing project</a><br />
41             <a href="/maps/physical/clone_il_view.pl">View/update BAC IL mapping information (list view)</a><br />
42             <a href="/maps/physical/clone_reg.pl">View/update all BAC registry info (list view)</a></br>
43             <a href="/sequencing/tpf.pl">View TPF Files</a><br />
44             <a href="/sequencing/agp.pl">View AGP Files</a><br />
45         </div>
47 %       if (exists($user_roles->{'curator'})) {
49             <&| /page/info_section.mas, title=>'AGP and TPF File Upload', collapsible=>1, collapsed=>1, subtitle=>'For Curators' &>
51                 <div class="well">
52                     <div style="margin-top: 1em">
53                         <center><h4>Upload Accessioned Golden Path (AGP) File</h4></center>
54                         <hr>
55                         
56                         <form class="form-horizontal" action="/sequencing/agp.pl" method="post" enctype="multipart/form-data">
57                             <div class="row">
58                                 <div class="col-sm-6">
59                                     <div class="form-group form-group-sm">
60                                         <label class="col-sm-6 control-label">For Chromosome #: </label>
61                                         <div class="col-sm-6">
62                                             <input class="form-control" id="chrnuminput_agp" name="chr" type="text" size="2" maxlength="2" />
63                                         </div>
64                                     </div>
65                                 </div>
66                                 <div class="col-sm-6">
67                                     <div class="form-group form-group-sm">
68                                         <label class="col-sm-2 control-label">File: </label>
69                                         <div class="col-sm-10">
70                                             <input type="hidden" name="filetype" value="agp" />
71                                             <input id="agpinput" type="file" name="agp_file" value="Upload AGP file" />
72                                         </div>
73                                     </div>
74                                 </div>
75                             </div>
76                         </form>
77                         
78                         <center><h4>Upload Tiling Path Format (TPF) File</h4></center>
79                         <hr>
81                         <form class="form-horizontal" action="/sequencing/tpf.pl" method="post" enctype="multipart/form-data">
82                             <div class="row">
83                                 <div class="col-sm-6">
84                                     <div class="form-group form-group-sm">
85                                         <label class="col-sm-6 control-label">For Chromosome #: </label>
86                                         <div class="col-sm-6">
87                                             <input class="form-control" id="chrnuminput_tpf" name="chr" type="text" size="2" maxlength="2" />
88                                         </div>
89                                     </div>
90                                 </div>
91                                 <div class="col-sm-6">
92                                     <div class="form-group form-group-sm">
93                                         <label class="col-sm-2 control-label">File: </label>
94                                         <div class="col-sm-10">
95                                             <input type="hidden" name="filetype" value="tpf" />
96                                             <input id="tpfinput" type="file" name="tpfinput" value="Upload TPF file" />
97                                         </div>
98                                     </div>
99                                 </div>
100                             </div>
101                         </form>
102                         
103                     </div>
105                 </div>
106             </&>
108 %       }
110     </&>
111 %   }
113 %   if (exists($user_roles->{'curator'}) || exists($user_roles->{'sequencer'}) || exists($user_roles->{'submitter'})) {
115     <&| /page/info_section.mas, title=>'QTL Data Submission', collapsible=>0, collapsed=>0, subtitle=>'For Submitters and up' &>
116         <div class="well">
117             <a href="/phenome/qtl_form.pl">Upload and analyse your QTL data</a><br/>
118         </div>
119     </&>
121     <&| /page/info_section.mas, title=>'Populations', collapsible=>0, collapsed=>0, subtitle=>'For Submitters and up' &>
122         <div class="well">
123             <% $populations_list %>
124         </div>
125     </&>
127     <&| /page/info_section.mas, title=>'solGS Submitted Analysis Jobs', collapsible=>0, collapsed=>0, subtitle=>'For Submitters and up' &>
128         <div class="well">
129             <% $solgs_jobs_list %>
130         </div>
131     </&>
133 %   }
135 %   if (exists($user_roles->{'curator'}) ) {
137     <div class="row">
138         <div class="col-sm-6">
139             <&| /page/info_section.mas, title=>'Curator Tools', collapsible=>0, collapsed=>0, subtitle=>'For Curators' &>
140                 <div class="well">
141                     <a href="/solpeople/admin/crash_test.pl">Test website error handling</a><br />
142                     <a href="/solpeople/admin/stats.pl">View user stats</a><br />
143                     <a href="/user/admin/quick_create_account">Create new user account</a><br />
144                     <a href="/solpeople/admin/create_organization.pl">Create new organization</a>
145                 </div>
146             </&>
147         </div>
148         <div class="col-sm-6">
149             <&| /page/info_section.mas, title=>'Literature Mining', collapsible=>0, collapsed=>0, subtitle=>'For Curators' &>
150                 <div class="well">
151                     <a href= "/search/pub_search.pl">Search the SGN publication database </a><br />
152                     <a href= "/search/pub_search.pl?w9b3_assigned_to=<% $sp_person_id %>">See your assigned publications</a><br />
153                     <a href= "/search/pub_search.pl?w9b3_status=pending">See publications pending curation</a><br />
154                     <a href= "/chado/fetch_pubmed.pl">Load new publications from PubMed</a><br />
155                 </div>
156             </&>
157         </div>
158     </div>
160 %   }
162 %   if (exists($user_roles->{'curator'}) || exists($user_roles->{'sequencer'}) || exists($user_roles->{'submitter'})) {
164     <div class="row">
165         <div class="col-sm-6">
166             <&| /page/info_section.mas, title=>'Loci Editor', collapsible=>0, collapsed=>0, subtitle=>'For Submitters and up' &>
167                 <div class="well">
168                     <% $loci_editor_privileges %>
169                 </div>
170             </&>
171         </div>
172         <div class="col-sm-6">
173             <&| /page/info_section.mas, title=>'Annotated Loci', collapsible=>0, collapsed=>0, subtitle=>'For Submitters and up' &>
174                 <div class="well">
175                     <% $loci_annotations %>
176                 </div>
177             </&>
178         </div>
179     </div>
180 %   }
182 <&| /page/info_section.mas, title=>'User Status', collapsible=>0, collapsed=>0 &>
183     <div class="well">
184         <% $user_status %>
185     </div>
186 </&>
188 % }
190 </div>