source: WAeUP_SRP/branches/regebro-noskins/skins/waeup_design/main_template.pt @ 14086

Last change on this file since 14086 was 1698, checked in by Henrik Bettermann, 18 years ago

registration portlet beautified

  • Property svn:eol-style set to native
File size: 10.3 KB
RevLine 
[1522]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  can_raise python:mtool.assertViewable(here);
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  member mtool/getAuthenticatedMember;
15  isAnon mtool/isAnonymousUser;
16  isHomeless python:isAnon or member.getProperty('homeless', 0);
17  isHomeless python:(isHomeless == '0' and [0] or [isHomeless])[0];
18  actions python:atool.listFilteredActionsFor(here);
19  wf_state python:wtool.getInfoFor(here,'review_state','');
20  uname python: isAnon and 'Guest' or member.getUserName();
21  checkPerm nocall: mtool/checkPermission;
22  cpsmcat nocall:here/translation_service;
23  locale here/translation_service/getSelectedLanguage;
24  in_ws here/isInWorkspace;
[1614]25  waeup_skin here/get_waeup_skin;
[1692]26  student_theme python:test(waeup_skin == 'WAeUP_Student',1,0);
27  navigation_slot python:test(student_theme,'student_navigation_slot','navigation_slot');
28  object_tabs python:test(student_theme,'student_object_tabs','staff_object_tabs');
29 
[1685]30  ">
31  <metal:block define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
32    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33  </metal:block>
[1522]34  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
[1685]35        lang="en">
[1522]36    <head>
37      <metal:block use-macro="here/header_lib_header/macros/header|here/header_lib/macros/header">
38        <metal:block fill-slot="base">
39          <metal:block define-slot="base">
40            <base href=""
[1685]41                  tal:attributes="href string:${here_url}/" />
[1522]42          </metal:block>
43        </metal:block>
44        <metal:block fill-slot="head_slot">
45          <metal:block define-slot="head_slot" />
46        </metal:block>
47        <metal:block fill-slot="style_slot">
[1690]48          <link rel="stylesheet" type="text/css" media="all"
49                tal:attributes="href string:${base_url}common.css" />
50          <link rel="stylesheet" type="text/css" media="all"
51                tal:attributes="href string:${base_url}${waeup_skin}/render.css" />
52          <link rel="stylesheet" type="text/css" media="all"
[1692]53                tal:attributes="href string:${base_url}common2.css" />               
[1522]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"
[1686]61            href="icons/ng.png"
62            tal:attributes="href string:${base_url}icons/ng.png"
[1685]63            type="image/png" />
[1522]64      <link rel="shortcut icon"
[1686]65            href="icons/ng.png"
66            tal:attributes="href string:${base_url}icons/ng.png"
[1685]67            type="image/png" />
[1522]68    </head>
69    <body tal:condition="emptybody"
[1685]70          style="margin: 0px;"
71          tal:attributes="onload here/getOnLoad|string:setFocus();">
[1522]72      <metal:block define-slot="body" />
73      <metal:block define-slot="main" />
74    </body>
[1690]75   
[1522]76    <body tal:condition="not:emptybody"
[1685]77          style="margin: 0px;"
78          tal:attributes="onload here/getOnLoad|string:setFocus();">
[1522]79      <div>
80        <a href="http://uniben.waeup.org/accessibility"
[1685]81           accesskey="0"></a>
[1522]82        <a href="http://uniben.waeup.org/" accesskey="1"></a>
83        <a href="#content" accesskey="2"></a>
84        <a href="#menu" accesskey="3"></a>
85        <a href="http://uniben.waeup.org/advanced_search_form"
[1685]86           accesskey="4"></a>
[1522]87        <a href="http://uniben.waeup.org/" accesskey="7"></a>
88      </div>
[1690]89     
90     
[1692]91      <table summary="Logo Block"
[1685]92             style="margin-left: auto; margin-right: auto; width: 100%;"
93             class="shapeNoBorder colorTransparent" cellpadding="0"
94             cellspacing="0">
[1522]95        <tbody>
96          <tr>
97            <td style="width: 20px;" valign="top"></td>
[1690]98            <td valign="top" style="width: 80px; padding: 0.5em; text-align: right;">
[1692]99              <img tal:attributes="src string:${base_url}images/uniben_mark.jpg"  alt="Logo"
[1685]100                       height="84" width="82" />
[1522]101            </td>
[1690]102            <td style="padding: 2em 0em 0em 0em; text-align: left;" valign="top">
[1692]103              <img tal:attributes="src string:${base_url}images/uniben_logo.gif"
[1685]104                       alt="Logo" height="51" width="234" />
[1522]105            </td>
106            <td style="width: 20px;" valign="top"></td>
107          </tr>
108        </tbody>
109      </table>
[1692]110
111      <table summary="Navigation Block"
112             style="margin-left: auto; margin-right: auto; width: 100%;"
113             class="shapeNoBorder colorTransparent" cellpadding="0"
114             cellspacing="0">
115        <tbody>
116          <tr>
117            <td style="width: 20px;" valign="top"></td>
118            <td style="" valign="top">
119              <div id="navigation_slot"
120                       style="padding: 0em 0em 1px; text-align: right;"
121                       class="fontColornavigation fontShapenavigation portalTabTabStyle cpsskinsHBox body">
122                 <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot=navigation_slot)"
123                  tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
124              </div>
125            </td>
126            <td style="width: 20px;" valign="top"></td>
127          </tr>
128        </tbody>
129      </table>
[1690]130     
131     
[1692]132      <table summary="Main Table Block 1"
133           style="margin-left: auto; margin-right: auto; width: 100%;"
[1696]134           cellpadding="0" cellspacing="0">
[1692]135      <tbody>
136        <tr>
137          <td style="width: 20px;" valign="top"></td>
[1693]138          <td style="width: 150px;text-align: center;"
[1696]139              valign="top">
[1692]140            <div id="portal_session" style="padding: 0.4em 0.4em 0.4em 0.3em;"
141                 class="colorBarAreaColor fontColordefaultnovisitedlinks fontShapeaverage shapeAreaShape9">
142                    <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='portal_session')"
143                               tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
144            </div>
145          </td>
[1696]146          <td style="text-align: left; padding: 0.2em 0.2em 0em;" class="colorBarColor" valign="top">
[1692]147            <div id="object_tabs" class="fontColornavigation fontShapeaverage cpsskinsHBox body">
148                <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot=object_tabs)"
149                           tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
150            </div>
151          </td>
152          <td tal:condition="not:student_theme"
[1696]153              class="colorBarColor" valign="top" style="text-align: right;padding: 0.2em 0.2em 0em; width: 280px;">
[1692]154            <div id="status_slot" class="fontColordefaultfontcolors fontShapeaverage cpsskinsHBox body">
155                <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='status_slot')"
156                           tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
157            </div>
158          </td>
[1696]159          <td style="width: 20px;"
[1692]160              valign="top"></td>
161        </tr>
162      </tbody>
163    </table>
164 
165 
166 
167    <table summary="Main Table Block 2"
[1685]168             style="margin-left: auto; margin-right: auto; width: 100%;"
169             class="" cellpadding="0" cellspacing="0">
170      <tbody>
171        <tr>
[1692]172          <td style="width: 20px;" valign="top"></td>
[1693]173          <td style="width: 150px;text-align: left;"
[1696]174              class="colorBarColor fontColornavigation fontShapeaverage boxShapenavbox cpsskinsBox" valign="top">
[1692]175            <div id="staff_actions_slot" class="body">
176              <tal:block tal:condition="not:student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='staff_actions_slot')"
177                         tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
178              <tal:block tal:condition="not:student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='global_actions_slot')"
179                         tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
180              <tal:block tal:condition="student_theme" repeat="portlet python:ptool.getPortlets(context=context, slot='student_actions_slot')"
181                         tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
182              <span tal:condition="student_theme">
[1698]183
184              <div style="padding: 1.5em 0.5em 0em 0.5em;">
185                 <strong>Registration Status:</strong>
186              </div>
187              <div style="padding: 0.5em;">
[1692]188                <tal:block repeat="portlet python:ptool.getPortlets(context=context, slot='student_workflow')"
[1698]189                             tal:content="structure python:portlet.render_cache(context_obj=context, portlet=portlet, boxedit=None)" />
190              </div>
191
[1692]192              </span>                         
193            </div>
194          </td>
[1690]195          <td style="" class="shapeAreaShape5 colorBarAreaColor" valign="top">
196            <div style="padding: 0.5em; text-align: left;" class="fontColordefaultfontcolors fontShapeaverage">
[1686]197                    <metal:block define-slot="header" />
198                    <metal:block define-slot="main" />
199                    <metal:block define-slot="sub" />
[1685]200            </div>
201          </td>
202          <td style="width: 20px;" valign="top"></td>
203        </tr>
204      </tbody>
205    </table>
[1690]206   
207   
[1692]208    <table summary="Copyright Info Block"
[1685]209             style="margin-left: auto; margin-right: auto; width: 100%;"
210             cellspacing="0">
[1522]211        <tbody>
212          <tr>
213            <td style="width: 20px;" valign="top"></td>
[1690]214            <td style="padding: 0.2em; text-align: right;" valign="top">
215              <div class="fontColordefaultfontcolors fontShapeaverage">
[1522]216              Copyright WAeUP Group 2007</div>
217            </td>
218            <td style="width: 20px;" valign="top"></td>
219          </tr>
220        </tbody>
[1690]221    </table>
[1522]222    </body>
223  </html>
224</metal:block>
Note: See TracBrowser for help on using the repository browser.