Ignore:
Timestamp:
Feb 24, 2010, 2:22:35 PM (15 years ago)
Author:
gav
Message:

Add alt menu and shared messages to department detailed views.

Location:
trunk/grails-app/views/departmentDetailed
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/departmentDetailed/create.gsp

    r333 r412  
    66        <meta name="layout" content="main" />
    77        <title>Create Department</title>
     8        <nav:resources override="true"/>
    89    </head>
    910    <body>
    1011        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">Department List</g:link></span>
     12            <nav:renderSubItems group="navAlt"/>
    1213        </div>
    1314        <div class="body">
    14             <h1>Create Department</h1>
    15             <g:if test="${flash.message}">
    16             <div class="message">${flash.message}</div>
    17             </g:if>
     15            <g:render template="/shared/messages" />
    1816            <g:hasErrors bean="${departmentInstance}">
    1917            <div class="errors">
  • trunk/grails-app/views/departmentDetailed/edit.gsp

    r410 r412  
    66        <meta name="layout" content="main" />
    77        <title>Edit Department</title>
     8        <nav:resources override="true"/>
    89    </head>
    910    <body>
    1011        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">Department List</g:link></span>
    12             <span class="menuButton"><g:link class="create" action="create">New Department</g:link></span>
     12            <nav:renderSubItems group="navAlt"/>
    1313        </div>
    1414        <div class="body">
    15             <h1>Edit Department</h1>
    16             <g:if test="${flash.message}">
    17             <div class="message">${flash.message}</div>
    18             </g:if>
     15            <g:render template="/shared/messages" />
    1916            <g:hasErrors bean="${departmentInstance}">
    2017            <div class="errors">
     
    118115                <div class="buttons">
    119116                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
     117                    <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span>
    120118                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
    121119                </div>
  • trunk/grails-app/views/departmentDetailed/list.gsp

    r339 r412  
    66        <meta name="layout" content="main" />
    77        <title>Department List</title>
     8        <nav:resources override="true"/>
    89    </head>
    910    <body>
    1011        <div class="nav">
    11             <span class="menuButton"><g:link class="create" action="create">New Department</g:link></span>
     12            <nav:renderSubItems group="navAlt"/>
    1213        </div>
    1314        <div class="body">
    14             <h1>Department List</h1>
    15             <g:if test="${flash.message}">
    16             <div class="message">${flash.message}</div>
    17             </g:if>
     15            <g:render template="/shared/messages" />
    1816            <div class="list">
    1917                <table>
  • trunk/grails-app/views/departmentDetailed/show.gsp

    r333 r412  
    66        <meta name="layout" content="main" />
    77        <title>Show Department</title>
     8        <nav:resources override="true"/>
    89    </head>
    910    <body>
    1011        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">Department List</g:link></span>
    12             <span class="menuButton"><g:link class="create" action="create">New Department</g:link></span>
     12            <nav:renderSubItems group="navAlt"/>
    1313        </div>
    1414        <div class="body">
    15             <h1>Show Department</h1>
    16             <g:if test="${flash.message}">
    17             <div class="message">${flash.message}</div>
    18             </g:if>
     15            <g:render template="/shared/messages" />
    1916            <div class="dialog">
    2017                <table>
Note: See TracChangeset for help on using the changeset viewer.