Ignore:
Timestamp:
Apr 7, 2010, 1:52:59 PM (15 years ago)
Author:
gav
Message:

Move params.message and params.errorMessage to shared messages template.

Location:
trunk/grails-app/views/person
Files:
2 edited

Legend:

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

    r399 r477  
    1212
    1313    <div class="body">
    14         <g:if test="${flash.message}">
    15         <div class="message">${flash.message}</div>
    16         </g:if>
    17         <g:if test="${params.message}">
    18             <div class="message">${params.message}</div>
    19         </g:if>
     14        <g:render template="/shared/messages" />
    2015        <g:hasErrors bean="${person}">
    2116        <div class="errors">
  • trunk/grails-app/views/person/edit.gsp

    r471 r477  
    1212
    1313    <div class="body">
    14         <g:if test="${flash.message}">
    15         <div class="message">${flash.message}</div>
    16         </g:if>
    17         <g:if test="${params.message}">
    18             <div class="message">${params.message}</div>
    19         </g:if>
     14        <g:render template="/shared/messages" />
    2015        <g:hasErrors bean="${person}">
    2116        <div class="errors">
Note: See TracChangeset for help on using the changeset viewer.