Changeset 477


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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/inventoryItemPurchaseDetailed/search.gsp

    r468 r477  
    1515        <div class="body">
    1616            <g:render template="/shared/messages" />
    17             <g:if test="${params.message}">
    18                 <div class="message">${params.message}</div>
    19             </g:if>
    2017            <filterpane:currentCriteria domainBean="InventoryItemPurchase"
    2118                                    action="search"
  • 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">
  • trunk/grails-app/views/shared/_messages.gsp

    r281 r477  
    55    <div class="message_error">${flash.errorMessage}</div>
    66</g:if>
     7<g:if test="${params.message}">
     8    <div class="message">${params.message}</div>
     9</g:if>
     10<g:if test="${params.errorMessage}">
     11    <div class="message_error">${params.errorMessage}</div>
     12</g:if>
Note: See TracChangeset for help on using the changeset viewer.