1 | <metal:block define-macro="master" |
---|
2 | tal:define="showthirdcol showthirdcol|python:1; |
---|
3 | emptybody emptybody|request/emptybody|nothing; |
---|
4 | mtool here/portal_membership; |
---|
5 | |
---|
6 | utool nocall:here/portal_url; |
---|
7 | atool here/portal_actions; |
---|
8 | ttool here/portal_trees; |
---|
9 | wtool here/portal_workflow; |
---|
10 | ptool here/portal_cpsportlets; |
---|
11 | context_url python:here.getContextUrl(utool=utool); |
---|
12 | here_url here/absolute_url; |
---|
13 | base_url here/getBaseUrl; |
---|
14 | static_dir here/portal_properties/static_dir; |
---|
15 | static_base_url string:${here/getBaseUrl}${static_dir}; |
---|
16 | member mtool/getAuthenticatedMember; |
---|
17 | isAnon mtool/isAnonymousUser; |
---|
18 | isHomeless python:isAnon or member.getProperty('homeless', 0); |
---|
19 | isHomeless python:(isHomeless == '0' and [0] or [isHomeless])[0]; |
---|
20 | actions python:atool.listFilteredActionsFor(here); |
---|
21 | wf_state python:wtool.getInfoFor(here,'review_state',''); |
---|
22 | uname python: isAnon and 'Guest' or member.getUserName(); |
---|
23 | checkPerm nocall: mtool/checkPermission; |
---|
24 | cpsmcat nocall:here/translation_service; |
---|
25 | locale here/translation_service/getSelectedLanguage; |
---|
26 | in_ws here/isInWorkspace; |
---|
27 | waeup_skin here/get_waeup_skin; |
---|
28 | student_theme python:test(waeup_skin == 'WAeUP_Student',1,0); |
---|
29 | navigation_slot python:test(student_theme,'student_navigation_slot','navigation_slot'); |
---|
30 | object_tabs python:test(student_theme,'student_object_slot','staff_object_slot'); |
---|
31 | |
---|
32 | "> |
---|
33 | <metal:block define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
---|
34 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
35 | </metal:block> |
---|
36 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
37 | lang="en"> |
---|
38 | <head> |
---|
39 | <metal:block use-macro="here/header_lib_header/macros/header|here/header_lib/macros/header"> |
---|
40 | <metal:block fill-slot="base"> |
---|
41 | <metal:block define-slot="base"> |
---|
42 | <base href="" |
---|
43 | tal:attributes="href string:${here_url}/" /> |
---|
44 | </metal:block> |
---|
45 | </metal:block> |
---|
46 | <metal:block fill-slot="head_slot"> |
---|
47 | <metal:block define-slot="head_slot" /> |
---|
48 | </metal:block> |
---|
49 | <metal:block fill-slot="style_slot"> |
---|
50 | <link rel="stylesheet" type="text/css" media="all" |
---|
51 | tal:attributes="href string:${static_base_url}common.css" /> |
---|
52 | <link rel="stylesheet" type="text/css" media="all" |
---|
53 | tal:attributes="href string:${static_base_url}${waeup_skin}/render.css" /> |
---|
54 | <metal:block define-slot="style_slot" /> |
---|
55 | </metal:block> |
---|
56 | <metal:block fill-slot="javascript_head_slot"> |
---|
57 | <metal:block define-slot="javascript_head_slot" /> |
---|
58 | </metal:block> |
---|
59 | </metal:block> |
---|
60 | <link rel="icon" |
---|
61 | href="ng.png" |
---|
62 | tal:attributes="href string:${static_base_url}ng.png" |
---|
63 | type="image/png" /> |
---|
64 | <link rel="shortcut icon" |
---|
65 | href="icons/ng.png" |
---|
66 | tal:attributes="href string:${static_base_url}ng.png" |
---|
67 | type="image/png" /> |
---|
68 | </head> |
---|
69 | <body tal:condition="emptybody" |
---|
70 | style="margin: 0px;" |
---|
71 | tal:attributes="onload here/getOnLoad|string:setFocus();"> |
---|
72 | <metal:block define-slot="body" /> |
---|
73 | <metal:block define-slot="main" /> |
---|
74 | </body> |
---|
75 | |
---|
76 | <body tal:condition="not:emptybody" |
---|
77 | style="margin: 0px;" |
---|
78 | tal:attributes="onload here/getOnLoad|string:setFocus();"> |
---|
79 | |
---|
80 | |
---|
81 | <table summary="Logo Block" |
---|
82 | style="margin-left: auto; margin-right: auto; width: 100%;" |
---|
83 | class="shapeNoBorder colorTransparent" cellpadding="0" |
---|
84 | cellspacing="0"> |
---|
85 | <tbody> |
---|
86 | <tr> |
---|
87 | <td style="width: 20px;"></td> |
---|
88 | <td style="text-align: left; padding-top: 0.5em;"> |
---|
89 | <img tal:attributes="src string:${static_base_url}logo.png" alt="Logo" |
---|
90 | /> |
---|
91 | </td> |
---|
92 | </tr> |
---|
93 | </tbody> |
---|
94 | </table> |
---|
95 | |
---|
96 | <table summary="Navigation Block" |
---|
97 | style="margin-left: auto; margin-right: auto; width: 100%;" |
---|
98 | class="shapeNoBorder colorTransparent" cellpadding="0" |
---|
99 | cellspacing="0"> |
---|
100 | <tbody> |
---|
101 | <tr> |
---|
102 | <td style="width: 20px;" valign="top"></td> |
---|
103 | <td style="" valign="top"> |
---|
104 | <div id="navigation_slot" |
---|
105 | style="padding: 0em 0em 1px; text-align: right;" |
---|
106 | class="fontColornavigation fontShapenavigation portalTabTabStyle cpsskinsHBox body"> |
---|
107 | <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot=navigation_slot)" |
---|
108 | tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet)" /> |
---|
109 | </div> |
---|
110 | </td> |
---|
111 | <td style="width: 20px;" valign="top"></td> |
---|
112 | </tr> |
---|
113 | </tbody> |
---|
114 | </table> |
---|
115 | |
---|
116 | |
---|
117 | <table summary="Main Table Block 1" |
---|
118 | style="margin-left: auto; margin-right: auto; width: 100%;" |
---|
119 | cellpadding="0" cellspacing="0"> |
---|
120 | <tbody> |
---|
121 | <tr> |
---|
122 | <td style="width: 20px;" valign="top"></td> |
---|
123 | <td style="width: 170px;text-align: center;" |
---|
124 | valign="top"> |
---|
125 | <div id="portal_session" style="padding: 0.4em 0.4em 0.4em 0.3em;" |
---|
126 | class="colorBarAreaColor fontColordefaultnovisitedlinks fontShapeaverage shapeAreaShape9"> |
---|
127 | <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='portal_session')" |
---|
128 | tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" /> |
---|
129 | </div> |
---|
130 | </td> |
---|
131 | <td style="text-align: left; padding: 0.2em 0.2em 0em;" class="colorBarColor" valign="top"> |
---|
132 | <metal:block define-slot="action_slot" /> |
---|
133 | <div id="object_tabs" class="fontColornavigation fontShapeaverage cpsskinsHBox body" |
---|
134 | tal:define="portlets python:ptool.getPortlets(context=context, slot=object_tabs)"> |
---|
135 | <tal:block repeat="portlet portlets" |
---|
136 | tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet)" /> |
---|
137 | </div> |
---|
138 | </td> |
---|
139 | <td tal:condition="not:student_theme" |
---|
140 | class="colorBarColor" valign="top" style="text-align: right;padding: 0.2em 0.2em 0em; width: 280px;"> |
---|
141 | <div id="status_slot" class="fontColordefaultfontcolors fontShapeaverage cpsskinsHBox body" |
---|
142 | tal:define="portlets python:ptool.getPortlets(context=context, slot='status_slot')"> |
---|
143 | <tal:block repeat="portlet portlets" |
---|
144 | tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" /> |
---|
145 | </div> |
---|
146 | </td> |
---|
147 | <td style="width: 20px;" |
---|
148 | valign="top"></td> |
---|
149 | </tr> |
---|
150 | </tbody> |
---|
151 | </table> |
---|
152 | |
---|
153 | |
---|
154 | |
---|
155 | <table summary="Main Table Block 2" |
---|
156 | style="margin-left: auto; margin-right: auto; width: 100%;" |
---|
157 | class="" cellpadding="0" cellspacing="0"> |
---|
158 | <tbody> |
---|
159 | <tr> |
---|
160 | <td style="width: 20px;" valign="top"></td> |
---|
161 | <td style="width: 170px;text-align: left;" |
---|
162 | class="colorBarColor fontColornavigation fontShapeaverage boxShapenavbox cpsskinsBox" valign="top"> |
---|
163 | <div id="staff_actions_slot" class="body" style="padding: 1.5em 0.5em 1.5em 0.5em;"> |
---|
164 | <tal:block tal:condition="not:student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='staff_actions_slot')" |
---|
165 | tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" /> |
---|
166 | <tal:block tal:condition="not:student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='global_actions_slot')" |
---|
167 | tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" /> |
---|
168 | <tal:block tal:condition="student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='student_actions_slot')" |
---|
169 | tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" /> |
---|
170 | |
---|
171 | <span tal:condition="student_theme"> |
---|
172 | <div style="padding: 0em;"> |
---|
173 | <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='student_workflow')" |
---|
174 | tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" /> |
---|
175 | </div> |
---|
176 | </span> |
---|
177 | |
---|
178 | <div style="padding-top: 10px;"> |
---|
179 | <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='student_notice_slot')" |
---|
180 | tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" /> |
---|
181 | </div> |
---|
182 | |
---|
183 | |
---|
184 | </div> |
---|
185 | </td> |
---|
186 | <td style="" class="shapeAreaShape5 colorBarAreaColor" valign="top"> |
---|
187 | <div style="padding: 0.5em; text-align: left;" class="fontColordefaultfontcolors fontShapeaverage"> |
---|
188 | <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" /> |
---|
189 | <metal:block define-slot="header" /> |
---|
190 | <metal:block define-slot="main" /> |
---|
191 | <metal:block define-slot="sub" /> |
---|
192 | </div> |
---|
193 | </td> |
---|
194 | <td style="width: 20px;" valign="top"></td> |
---|
195 | </tr> |
---|
196 | </tbody> |
---|
197 | </table> |
---|
198 | |
---|
199 | |
---|
200 | <table summary="Copyright Info Block" |
---|
201 | style="margin-left: auto; margin-right: auto; width: 100%;" |
---|
202 | cellspacing="0"> |
---|
203 | <tbody> |
---|
204 | <tr> |
---|
205 | <td style="width: 20px;" valign="top"></td> |
---|
206 | <td style="padding: 0.2em; text-align: right;" valign="top"> |
---|
207 | <div class="fontColordefaultfontcolors fontShapeaverage"> |
---|
208 | Copyright WAeUP Group 2006-<span tal:content="python: DateTime().year()" /></div> |
---|
209 | </td> |
---|
210 | <td style="width: 20px;" valign="top"></td> |
---|
211 | </tr> |
---|
212 | </tbody> |
---|
213 | </table> |
---|
214 | </body> |
---|
215 | </html> |
---|
216 | </metal:block> |
---|