Changeset 866 for trunk


Ignore:
Timestamp:
Mar 15, 2011, 7:54:54 PM (13 years ago)
Author:
gav
Message:

Small update to showSubTaskTab template, mainly to show primary asset.

File:
1 edited

Legend:

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

    r836 r866  
    66                    <tr>
    77
    8                         <th>Id</th>
     8                        <th>Task #</th>
    99
    1010                        <th>Target Start Date</th>
     
    1212                        <th>Description</th>
    1313
    14                         <th>Lead Person</th>
     14                        <th>
     15                            <img src="${resource(dir:'images/skin',file:'status.png')}" title="Status" alt="Status" />
     16                        </th>
    1517
    16                         <th>Task Priority</th>
    17 
    18                         <th>Task Status</th>
     18                        <th>Priority</th>
    1919
    2020                        <th></th>
     
    3535
    3636                        <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'>
     37                            <g:if test="${taskInstance.primaryAsset}">
     38                                ${fieldValue(bean:taskInstance, field:'primaryAsset')}:
     39                            </g:if>
    3740                            ${fieldValue(bean:subTaskInstance, field:'description')}
    3841                        </td>
    3942
    40 
    41                         <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'>
    42                             ${fieldValue(bean:subTaskInstance, field:'leadPerson')}
     43                        <td class="idColumn" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
     44                            <g:if test="${taskInstance.taskStatus.id == 1}" >
     45                                <img  src="${resource(dir:'images/skin',file:'not_started.png')}" alt="Not Started" title="Not Started" />
     46                            </g:if>
     47                            <g:if test="${taskInstance.taskStatus.id == 2}" >
     48                                <img  src="${resource(dir:'images/skin',file:'arrow_right.png')}" alt="In Progress" title="In Progress" />
     49                            </g:if>
     50                            <g:if test="${taskInstance.taskStatus.id == 3}" >
     51                                <img  src="${resource(dir:'images/skin',file:'tick.png')}" alt="Complete" title="Complete" />
     52                            </g:if>
    4353                        </td>
    4454
    4555                        <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'>
    4656                            ${fieldValue(bean:subTaskInstance, field:'taskPriority')}
    47                         </td>
    48 
    49                         <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'>
    50                             ${fieldValue(bean:subTaskInstance, field:'taskStatus')}
    5157                        </td>
    5258
Note: See TracChangeset for help on using the changeset viewer.