Ignore:
Timestamp:
Mar 4, 2011, 3:58:05 PM (13 years ago)
Author:
gav
Message:

Update Entry list and Task showTaskTab templates to use ajax create/save.

File:
1 edited

Legend:

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

    r838 r846  
    11
    22        <h1>
    3             <g:if test="${entryList[0]?.entryType?.id == 1}">
     3            <g:if test="${entryList[0].entryType.id == 1}">
    44                Faults
    55            </g:if>
    6             <g:if test="${entryList[0]?.entryType?.id == 2}">
     6            <g:if test="${entryList[0].entryType.id == 2}">
    77                Causes
    88            </g:if>
    9             <g:if test="${entryList[0]?.entryType?.id == 3}">
     9            <g:if test="${entryList[0].entryType.id == 3}">
    1010                Work Done
    1111            </g:if>
    12             <g:if test="${entryList[0]?.entryType?.id == 6}">
     12            <g:if test="${entryList[0].entryType.id == 6}">
    1313                PM Entries
    1414            </g:if>
     
    1818                <thead>
    1919                    <tr>
    20                         <g:if test="${entryList[0]?.entryType?.id == 6}">
     20                        <g:if test="${entryList[0].entryType.id == 6}">
    2121                            <th>
    2222                                <img src="${resource(dir:'images/skin',file:'award_star_silver_3.png')}"
     
    2727                        <th>Comment</th>
    2828                        <th>Date Done</th>
    29                         <th>Duration</th>
     29                        <g:if test="${(entryList[0].entryType.id == 3) || (entryList[0].entryType.id == 6)}">
     30                            <th>Duration</th>
     31                        </g:if>
    3032                        <th>Entered By</th>
    3133                        <th></th>
     
    5052                                </td>
    5153
    52                                 <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'>
    53                                     ${entry.durationHour}:${entry.durationMinute}
    54                                 </td>
     54                                <g:if test="${(entryList[0].entryType.id == 3) || (entryList[0].entryType.id == 6)}">
     55                                    <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'>
     56                                        ${entry.durationHour}:${entry.durationMinute}
     57                                    </td>
     58                                </g:if>
    5559
    5660                                <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'>
Note: See TracChangeset for help on using the changeset viewer.