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

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

Render two different sitelayout pagetemplates. The student version fits perfectly into iPhone browsers.

ToDo?: Use ResouceInclusion? for mobile.css.

File size: 5.4 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" tal:condition="not: layout/isStudent">
32              <tal:primary_nav content="structure provider:primary_nav" />
33            </ul>
34            <ul id="primary-navigation" tal:condition="layout/isStudent">
35              <tal:primary_nav content="structure provider:primary_nav_student" />
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        <span tal:condition="python: layout.isAuthenticated() and not layout.isStudent()"
59              tal:content="structure provider:breadcrumbs" />
60
61        <div class="yui-b" tal:condition="not: layout/isStudent">
62          <div class="block" tal:condition="layout/getStudentName">
63            <div class="hd">
64              <h2 tal:content="layout/getStudentName">Student name</h2>
65            </div>
66            <div class="bd">
67              <tal:left content="structure provider:left_studentmanage" />
68            </div>
69          </div>
70          <div class="block" tal:condition="layout/isAuthenticated">
71            <div class="hd">
72              <h2 tal:content="layout/getUserTitle">Username</h2>
73            </div>
74            <div class="bd">
75              <tal:left content="structure provider:left" />
76            </div>
77          </div>
78        </div>
79
80        <div class="yui-b" tal:condition="layout/isStudent">
81          <div class="block" tal:condition="layout/getStudentName">
82            <div class="studentmenu">
83              <tal:left content="structure provider:top_student" />
84            </div>
85          </div>
86        </div>
87
88        <div id="yui-main">
89          <div class="yui-b">
90            <div class="yui-g">
91              <div class="block">
92                <div class="hd" tal:condition="python: not layout.isStudent() and layout.isAuthenticated()">
93                  <span tal:content="view/title"> THE CONTENT TITLE </span>
94                  <span tal:condition="layout/getStudentName" class="wfstatus">
95                  Sudent Id: <span tal:content="python:context.getStudent().student_id">Student Id</span>
96                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
97                  Registration State: <span tal:content="python:context.getStudent().state">State</span>
98                  </span>
99                </div>
100                <div class="bd">
101                  <div class="actionbar">
102                    <tal:actionbar content="structure provider:actionbar" />
103                  </div>
104                  <div class="alert warning ui-state-error"
105                      tal:define="message context/@@messages"
106                      tal:condition="python: len(message)>11">
107                    <span class="ui-icon ui-icon-alert">A
108                    </span>
109                    <span tal:content="structure message">
110                    </span>
111                  </div>
112                  <div tal:replace="structure view/content"> THE CONTENT
113                  </div>
114                </div>
115              </div>
116            </div>
117          </div>
118        </div>
119
120      </div>
121      <div id="ft" role="contentinfo">
122        <p>Student Information and Registration Portal<br />
123            Copyright &copy; WAeUP Group, 2008-2011
124        </p>
125      </div>
126    </div>
127  </body>
128</html>
Note: See TracBrowser for help on using the repository browser.