Ignore:
Timestamp:
Feb 22, 2010, 6:30:54 PM (15 years ago)
Author:
gav
Message:

Add shared messages and cancel button to templates.

Location:
trunk/src/templates/scaffolding
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/scaffolding/create.gsp

    r178 r398  
    1313        <div class="body">
    1414            <h1>Create ${className}</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="\${${propertyName}}">
    1917            <div class="errors">
  • trunk/src/templates/scaffolding/edit.gsp

    r178 r398  
    1414        <div class="body">
    1515            <h1>Edit ${className}</h1>
    16             <g:if test="\${flash.message}">
    17             <div class="message">\${flash.message}</div>
    18             </g:if>
     16            <g:render template="/shared/messages" />
    1917            <g:hasErrors bean="\${${propertyName}}">
    2018            <div class="errors">
     
    5654                <div class="buttons">
    5755                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
     56                    <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span>
    5857                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
    5958                </div>
  • trunk/src/templates/scaffolding/list.gsp

    r178 r398  
    1313        <div class="body">
    1414            <h1>${className} 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/src/templates/scaffolding/show.gsp

    r178 r398  
    1414        <div class="body">
    1515            <h1>Show ${className}</h1>
    16             <g:if test="\${flash.message}">
    17             <div class="message">\${flash.message}</div>
    18             </g:if>
     16            <g:render template="/shared/messages" />
    1917            <div class="dialog">
    2018                <table>
Note: See TracChangeset for help on using the changeset viewer.