source: branches/features/purchaseOrders/grails-app/views/layouts/main.gsp @ 954

Last change on this file since 954 was 947, checked in by gav, 13 years ago

Enhance and refactor functional tests to use pageId (for at{} verify) in main.gsp layout.

File size: 3.2 KB
RevLine 
[141]1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
[56]2<html>
3    <head>
[59]4        <title><g:layoutTitle default="gnuMims" /></title>
[947]5        <meta name="pageId" content="${controllerName}.${actionName}" />
[151]6        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
7        <link rel="shortcut icon" href="${resource(dir:'images',file:'gnuMimsIcon.ico')}" type="image/x-icon" />
[798]8        <g:javascript library="jquery" />
[711]9        <g:javascript library="prototype/prototype" />
10        <g:javascript library="prototype/effects" />
[59]11        <g:javascript library="application" />
[306]12        <g:javascript src="overlayPane.js" />
[322]13        <jsUtil:resources />
[312]14        <gnuMims:resources />
[711]15        <nav:resources override="true"/>
16        <g:helpBalloons icon="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}"
17                                        button="${resource(plugin:'help-balloons', dir:'images', file:'balloon-button.png')}"
18                                        balloonPrefix="${resource(plugin:'help-balloons', dir:'images')}/balloon-"/>
19        <g:layoutHead />
[56]20    </head>
[142]21
[73]22    <!-- Added g:pageProperty so that onload in each page works -->
[313]23    <body onload="${pageProperty(name: 'body.onload')}">
[98]24        <div id="wrapper" style="height: 100%;">
25            <div id="top">
26            </div>
27            <div id="content" align="center">
28                <div id="spinner" class="spinner" style="display:none;">
[452]29                    <img src="${resource(dir:'images',file:'loading_bar.gif')}" alt="Spinner" />
[98]30                </div>
[825]31                <div id="jQueryAjaxLoading" class="jQueryAjaxLoading" style="display:none;">
32                    <img src="${resource(dir:'images',file:'loading.gif')}" alt="Loading" title="Loading" />
33                </div>
34                <div id="jQueryAjaxDefaultError" class="message_error" style="display:none;">
[850]35                    <g:message code="ajax.default.could.not.perform.operation" />
[827]36                </div>
[942]37                <div id="${custom.headerId()}">
38                    <a href="javascript: openWindow('http://www.gnumims.org')" id=HeaderLink></a>
39                </div>
[142]40
[141]41                <g:isLoggedIn>
[142]42                    <div class="appControl">
[141]43                        <g:link controller="logout" class="logoutButton">
44                                Log out (<g:loggedInUsername/>)
45                        </g:link>
[139]46                        <div id="menu">
47                            <nav:render group="nav"/>
[142]48                        </div>
[801]49                        <div class='app_help'>
[810]50                            <a href="javascript: openWindow('http://www.youtube.com/gnuMims')">
[801]51                                <img src="${resource(dir:'images/skin',file:'help.png')}" alt="Help" title="Help"/>
52                            </a>
53                        </div>
[306]54                        <gnuMims:assetTreeButton />
[141]55                    </div>
[306]56                </g:isLoggedIn>
[110]57
[139]58                <g:layoutBody />
[110]59
[139]60            </div> <!-- content -->
[98]61            <div id="bottom">
62            </div>
[139]63        </div> <!-- wrapper -->
[306]64
65        <!-- Asset Tree Pane -->
[312]66        <gnuMims:assetTreePane />
[306]67
68    </body>
[942]69</html>
Note: See TracBrowser for help on using the repository browser.