Ignore:
Timestamp:
Mar 7, 2010, 12:06:07 PM (14 years ago)
Author:
gav
Message:

Small improvements to create immediate callout and entry detailing.

File:
1 edited

Legend:

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

    r431 r432  
    5050                                    </g:if>
    5151                                    <g:elseif test="${entryInstance?.entryType?.id == 2}">
     52                                        <g:helpBalloon code="entry.comment.cause" />
     53                                    </g:elseif>
     54                                    <g:elseif test="${entryInstance?.entryType?.id == 3}">
    5255                                        <g:helpBalloon code="entry.comment.work.done" />
    5356                                    </g:elseif>
     
    8184                                </tr>
    8285                            </g:if>
    83                        
    84                             <tr class="prop">
    85                                 <td valign="top" class="name">
    86                                     <label for="durationHour">Duration:</label>
    87                                 </td>
    8886
    89                                 <td valign="top" class="value">
    90                                     <input class="time ${hasErrors(bean:entryInstance,field:'durationHour','errors')}"
    91                                         type="text" id="durationHour" name="durationHour"
    92                                         value="${fieldValue(bean:entryInstance,field:'durationHour')}" />
    93                                     :
    94                                     <input class="time ${hasErrors(bean:entryInstance,field:'durationMinute','errors')}"
    95                                         type="text" id="durationMinute" name="durationMinute"
    96                                         value="${fieldValue(bean:entryInstance,field:'durationMinute')}" />
    97                                     <g:helpBalloon code="entry.duration" />
    98                                 </td>
    99                             </tr>
     87                            <g:if test="${entryInstance?.entryType?.id != 2}">
     88                                <tr class="prop">
     89                                    <td valign="top" class="name">
     90                                        <label for="durationHour">Duration:</label>
     91                                    </td>
     92
     93                                    <td valign="top" class="value">
     94                                        <input class="time ${hasErrors(bean:entryInstance,field:'durationHour','errors')}"
     95                                            type="text" id="durationHour" name="durationHour"
     96                                            value="${fieldValue(bean:entryInstance,field:'durationHour')}" />
     97                                        :
     98                                        <input class="time ${hasErrors(bean:entryInstance,field:'durationMinute','errors')}"
     99                                            type="text" id="durationMinute" name="durationMinute"
     100                                            value="${fieldValue(bean:entryInstance,field:'durationMinute')}" />
     101                                        <g:helpBalloon code="entry.duration" />
     102                                    </td>
     103                                </tr>
     104                            </g:if>
    100105                       
    101106                        </tbody>
Note: See TracChangeset for help on using the changeset viewer.