Ignore:
Timestamp:
Feb 28, 2010, 7:13:47 PM (14 years ago)
Author:
gav
Message:

Add attentionFlag to Task domain along with views and logic to suite.
Add entry type 'cause', refactor as required.
Refactor task types.
Move createBreakin to createImmediateCallout.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/taskDetailed/createImmediateCallout.gsp

    r406 r418  
    33        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    44        <meta name="layout" content="main" />
    5         <title>Create Breakin</title>
     5        <title>Create Immediate Callout</title>
    66        <nav:resources override="true"/>
    77        <resource:dateChooser />
     
    2323            </div>
    2424            </g:hasErrors>
     25            <g:hasErrors bean="${entryCauseInstance}">
     26            <div class="errors">
     27                <g:renderErrors bean="${entryCauseInstance}" as="list" />
     28            </div>
     29            </g:hasErrors>
    2530            <g:hasErrors bean="${entryWorkDoneInstance}">
    2631            <div class="errors">
     
    2934            </g:hasErrors>
    3035
    31             <g:form action="saveBreakin" method="post" name="createTaskForm">
     36            <g:form action="saveImmediateCallout" method="post" name="createTaskForm">
    3237                <div class="dialog">
    3338                    <table>
     
    3641                            <tr class="prop">
    3742                                <td valign="top" class="name">
    38                                     <label for="description">Breakin Description:</label>
     43                                    <label for="description">Callout Description:</label>
    3944                                </td>
    4045                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}">
     
    4247                                    <g:helpBalloon class="helpballoon" code="task.description" />
    4348                                </td>
     49                            </tr>
     50                       
     51                            <tr class="prop">
     52                                <td valign="top" class="name">
     53                                    <label for="durationHour">Down Time:</label>
     54                                </td>
     55
     56                                <td valign="top" class="value">
     57                                    <input class="time ${hasErrors(bean:entryFaultInstance,field:'durationHour','errors')}"
     58                                        type="text" id="entryFault.durationHour" name="entryFault.durationHour"
     59                                        value="${fieldValue(bean:entryFaultInstance,field:'durationHour')}" />
     60                                    :
     61                                    <input class="time ${hasErrors(bean:entryFaultInstance,field:'durationMinute','errors')}"
     62                                        type="text" id="entryFault.durationMinute" name="entryFault.durationMinute"
     63                                        value="${fieldValue(bean:entryFaultInstance,field:'durationMinute')}" />
     64                                    <g:helpBalloon code="entry.duration" />
     65                                </td>
    4466                            </tr>
    4567                       
     
    5678                            <tr class="prop">
    5779                                <td valign="top" class="name">
    58                                     <label for="durationHour">Fault Duration:</label>
     80                                    <label for="comment">${entryCauseInstance?.entryType.encodeAsHTML()}:</label>
    5981                                </td>
    60 
    61                                 <td valign="top" class="value">
    62                                     <input class="time ${hasErrors(bean:entryFaultInstance,field:'durationHour','errors')}"
    63                                         type="text" id="entryFault.durationHour" name="entryFault.durationHour"
    64                                         value="${fieldValue(bean:entryFaultInstance,field:'durationHour')}" />
    65                                     :
    66                                     <input class="time ${hasErrors(bean:entryFaultInstance,field:'durationMinute','errors')}"
    67                                         type="text" id="entryFault.durationMinute" name="entryFault.durationMinute"
    68                                         value="${fieldValue(bean:entryFaultInstance,field:'durationMinute')}" />
    69                                     <g:helpBalloon code="entry.duration" />
    70                                 </td>
     82                                <td valign="top" class="value ${hasErrors(bean:entryCauseInstance,field:'comment','errors')}">
     83                                    <textarea rows="5" cols="40" name="entryCause.comment">${fieldValue(bean:entryCauseInstance, field:'comment')}</textarea>
     84                                        <g:helpBalloon code="entry.comment.cause" />
     85                                </td>
    7186                            </tr>
    7287                       
Note: See TracChangeset for help on using the changeset viewer.