Changeset 230


Ignore:
Timestamp:
Dec 18, 2009, 11:26:30 AM (10 years ago)
Author:
gav
Message:

Add startup log to BootStrap.
Add help balloon messages to create entry view.

Location:
trunk/grails-app
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrap.groovy

    r199 r230  
    77    def init = { servletContext ->
    88
     9        log.info "Application starting."
    910        log.debug "GrailsUtil.environment = ${GrailsUtil.environment}"
    1011
  • trunk/grails-app/i18n/messages.properties

    r225 r230  
    2121entry.duration=Duration
    2222entry.duration.help=The time (hh:mm) booked against this entry for date done.
     23entry.date.done=Date Done
     24entry.date.done.help=The date on which the event actually occurred.
     25entry.comment.fault=Fault
     26entry.comment.fault.help=Describe the fault from an operation perspective, NOT a technical perspective.
     27entry.comment.work.done=Work Done
     28entry.comment.work.done.help=Describe the work that was done. \
     29Include the root cause if known or professional opinion on any faults. \
     30Include condition and contributing factors.
    2331
    2432assignedPerson.estimatedDuration=Estimated Duration
  • trunk/grails-app/views/entryDetailed/create.gsp

    r218 r230  
    4242                            <tr class="prop">
    4343                                <td valign="top" class="name">
    44                                     <label for="comment">${entryInstance?.entryType}:</label>
     44                                    <label for="comment">${entryInstance?.entryType.encodeAsHTML()}:</label>
    4545                                </td>
    4646                                <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'comment','errors')}">
    4747                                    <textarea rows="5" cols="40" name="comment">${fieldValue(bean:entryInstance, field:'comment')}</textarea>
     48                                    <g:if test="${entryInstance?.entryType?.id == 1}">
     49                                        <g:helpBalloon code="entry.comment.fault" />
     50                                    </g:if>
     51                                    <g:elseif test="${entryInstance?.entryType?.id == 2}">
     52                                        <g:helpBalloon code="entry.comment.work.done" />
     53                                    </g:elseif>
    4854                                </td>
    49                             </tr> 
     55                            </tr>
    5056                       
    5157                            <tr class="prop">
     
    5561                                <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'dateDone','errors')}">
    5662                                    <richui:dateChooser name="dateDone" format="dd-MM-yyyy" value="${new Date()}" />
     63                                    <g:helpBalloon code="entry.date.done" />
    5764                                </td>
    58                             </tr> 
     65                            </tr>
    5966                       
    6067                            <tr class="prop">
Note: See TracChangeset for help on using the changeset viewer.