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

Last change on this file since 6723 was 6723, checked in by Henrik Bettermann, 14 years ago

Display Id and state in student layout too. This doesn't look nice on smart phones. Have to think about another solution.

File size: 4.4 KB
RevLine 
[6690]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;">
[6693]31            <ul id="primary-navigation" tal:condition="layout/isAuthenticated">
32              <tal:primary_nav content="structure provider:primary_nav_student" />
33            </ul>
34            <ul id="primary-navigation" tal:condition="not: layout/isAuthenticated">
[6690]35              <tal:primary_nav content="structure provider:primary_nav" />
36            </ul>
37            <ul id="user-navigation">
38              <li tal:condition="not: layout/isAuthenticated">
39              <a href="#" tal:attributes="href python: view.url(layout.site, 'login')">
40                  Login
41              </a>
42              </li>
43              <li tal:condition="layout/isAuthenticated">
44              <a href="#" tal:attributes="href python: view.url(layout.site, '@@contactadmin')">
45                  Contact
46              </a>
47              </li>
48              <li tal:condition="layout/isAuthenticated">
49              <a href="#" tal:attributes="href python: view.url(context, '@@logout')">Logout</a>
50              </li>
51            </ul>
52            <div class="clear">
53            </div>
54          </div>
55        </div>
56      </div>
57      <div id="bd" role="main">
58
[6693]59        <div class="yui-b">
[6690]60          <div class="block" tal:condition="layout/getStudentName">
61            <div class="studentmenu">
62              <tal:left content="structure provider:top_student" />
63            </div>
64          </div>
65        </div>
66
67        <div id="yui-main">
68          <div class="yui-b">
69            <div class="yui-g">
70              <div class="block">
71                <div class="bd">
72                  <div class="actionbar">
[6723]73                    <span tal:replace="structure provider:actionbar"></span>
74                    <span tal:condition="layout/getStudentName" class="wfstatus">
75                    Student Id:
76                    <span tal:replace="python:context.getStudent().student_id"
77                        class="wfstatus">Id</span>
78                    <br />
79                    State:
80                    <span tal:replace="python:context.getStudent().state"
81                        class="wfstatus">State</span>
82                    </span>
[6690]83                  </div>
84                  <div class="alert warning ui-state-error"
85                      tal:define="message context/@@messages"
86                      tal:condition="python: len(message)>11">
87                    <span class="ui-icon ui-icon-alert">A
88                    </span>
89                    <span tal:content="structure message">
90                    </span>
91                  </div>
92                  <div tal:replace="structure view/content"> THE CONTENT
93                  </div>
94                </div>
95              </div>
96            </div>
97          </div>
98        </div>
99
100      </div>
101      <div id="ft" role="contentinfo">
102        <p>Student Information and Registration Portal<br />
103            Copyright &copy; WAeUP Group, 2008-2011
104        </p>
105      </div>
106    </div>
107  </body>
108</html>
Note: See TracBrowser for help on using the repository browser.