source: main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/studentsitelayout.pt @ 7202

Last change on this file since 7202 was 7184, checked in by Henrik Bettermann, 13 years ago

Reorganise permissions:

The navigation viewlets now manage the permission requirements themselves. No need to do this in pagetemplates.

Rename permission waeup.View to waeup.viewAcademics because it only refers to the academic section.

Add permission waeup.Authenticated (which is used in students). The StudentRecordOwner? explicitly needs this permission. Otherwise the MyData? tab disappears when changing the password.

Roles do not need to get the waeup.Public permission. This is already guaranteed in site.zcml.

File size: 4.3 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
3  <head>
4    <title>WAeUP - your way up
5    </title>
6    <!--base href="http://localhost:8080/app/@@page"
7     tal:attributes="href python: view.url(layout.site)" / -->
8    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
9    <meta name="robots" content="index, follow" />
10    <meta name="viewport" content="width=320, initial-scale=1, maximum-scale=1"/>
11    <link rel="stylesheet" media="only screen and (max-device-width: 480px)"
12        tal:attributes="href python: view.url(layout.site, '@@/waeup.sirp.browser/mobile.css')" type="text/css" />
13    <link rel="shortcut icon" tal:attributes="href static/favicon.ico" type="image/x-icon" />
14    <link rel="alternate" type="application/rss+xml" title="RSS"
15        href="http://www.example.net/feed.rss"
16        tal:attributes="title string:RSS feed of ${layout/getAppTitle};
17            href python: view.url(layout.site, 'feed.rss')" />
18
19  </head>
20  <body class="rounded yui-skin-sam">
21    <div id="doc3" class="yui-t7">
22      <div id="hd" role="banner">
23        <div id="hd">
24          <h1 id="logo">
25            <a href="" tal:attributes="href view/application_url">
26              <span class="uni-logo">
27              </span> </a>
28            <span id="uni-title" tal:content="layout/getAppTitle"> Sample University
29            </span> </h1>
30          <div id="navigation" class="yui-navset" style="text-align:right;">
31            <ul id="primary-navigation">
32              <tal:primary_nav content="structure provider:primary_nav" />
33              <tal:primary_nav content="structure provider:primary_nav_student" />
34            </ul>
35            <ul id="user-navigation">
36              <li tal:condition="not: layout/isAuthenticated">
37              <a href="#" tal:attributes="href python: view.url(layout.site, 'login')">
38                  Login
39              </a>
40              </li>
41              <li tal:condition="layout/isAuthenticated">
42              <a href="#" tal:attributes="href python: view.url(layout.site, '@@contactadmin')">
43                  Contact
44              </a>
45              </li>
46              <li tal:condition="layout/isAuthenticated">
47              <a href="#" tal:attributes="href python: view.url(context, '@@logout')">Logout</a>
48              </li>
49            </ul>
50            <div class="clear">
51            </div>
52          </div>
53        </div>
54      </div>
55      <div id="bd" role="main">
56
57        <div class="yui-b">
58          <div class="block" tal:condition="layout/getStudentName">
59            <div class="studentmenu">
60              <tal:left content="structure provider:top_student" />
61            </div>
62          </div>
63        </div>
64
65        <div id="yui-main">
66          <div class="yui-b">
67            <div class="yui-g">
68              <div class="block">
69                <div class="bd">
70                  <div class="actionbar">
71                    <span tal:condition="layout/getStudentName" class="wfstatus">
72                    Id:
73                    <span tal:replace="python:context.getStudent().student_id"
74                        class="wfstatus">Id</span>
75                    &nbsp;&nbsp;
76                    State:
77                    <span tal:replace="python:context.getStudent().state"
78                        class="wfstatus">State</span>
79                    </span>
80                  </div>
81                  <div class="alert warning ui-state-error"
82                      tal:define="message context/@@messages"
83                      tal:condition="python: len(message)>11">
84                    <span class="ui-icon ui-icon-alert">A
85                    </span>
86                    <span tal:content="structure message">
87                    </span>
88                  </div>
89                  <div tal:replace="structure view/content"> THE CONTENT
90                  </div>
91                  <span tal:replace="structure provider:actionbar"></span>
92                </div>
93              </div>
94            </div>
95          </div>
96        </div>
97
98      </div>
99      <div id="ft" role="contentinfo">
100        <p>Student Information and Registration Portal<br />
101            Copyright &copy; WAeUP Group, 2008-2011
102        </p>
103      </div>
104    </div>
105  </body>
106</html>
Note: See TracBrowser for help on using the repository browser.