source: WAeUP_SRP/trunk/skins/waeup_design/idcard_template.pt @ 16250

Last change on this file since 16250 was 4029, checked in by Henrik Bettermann, 16 years ago

implement id card demo for FUT Minna

File size: 3.4 KB
RevLine 
[2043]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;
[4029]14  static_dir here/portal_properties/static_dir;
15  static_base_url string:${here/getBaseUrl}${static_dir};
[2043]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;
[4029]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');
[2043]31  ">
32  <metal:block define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
33    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
34  </metal:block>
35  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
36        lang="en">
37    <head>
38      <metal:block use-macro="here/header_lib_header/macros/header|here/header_lib/macros/header">
39        <metal:block fill-slot="base">
40          <metal:block define-slot="base">
41            <base href=""
42                  tal:attributes="href string:${here_url}/" />
43          </metal:block>
44        </metal:block>
45        <metal:block fill-slot="head_slot">
46          <metal:block define-slot="head_slot" />
47        </metal:block>
48        <metal:block fill-slot="style_slot">
49          <link rel="stylesheet" type="text/css" media="all"
50                tal:attributes="href string:${base_url}common.css" />
51          <metal:block define-slot="style_slot" />
52        </metal:block>
53        <metal:block fill-slot="javascript_head_slot">
54          <metal:block define-slot="javascript_head_slot" />
55        </metal:block>
56      </metal:block>
57      <link rel="icon"
58            href="ng.png"
59            tal:attributes="href string:${base_url}ng.png"
60            type="image/png" />
61      <link rel="shortcut icon"
62            href="icons/ng.png"
63            tal:attributes="href string:${base_url}ng.png"
64            type="image/png" />
65    </head>
66
67    <body tal:condition="not:emptybody"
68          style="margin: 0px;"
69          tal:attributes="onload here/getOnLoad|string:setFocus();">
70   
71     
72    <table summary="Main Block" cellpadding="0" cellspacing="0">
73      <tr>
74        <td valign="top" style="width:700px">
75          <div style="padding:2em; text-align: left;"
76               class="fontColordefaultfontcolors fontShapeTitleindex">
77                  <metal:block use-macro="here/generic_lib_portal_message/macros/portal_message" />
78                  <metal:block define-slot="header" />
79                  <metal:block define-slot="main" />
80                  <metal:block define-slot="sub" />
81          </div>
82        </td>
83      </tr>
84    </table>
85  </body>
86</html>
87</metal:block>
Note: See TracBrowser for help on using the repository browser.