Changeset 870 for trunk/grails-app/views


Ignore:
Timestamp:
Mar 16, 2011, 7:41:25 AM (14 years ago)
Author:
gav
Message:

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

File:
1 edited

Legend:

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

    r866 r870  
    3535
    3636                        <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'>
    37                             <g:if test="${taskInstance.primaryAsset}">
    38                                 ${fieldValue(bean:taskInstance, field:'primaryAsset')}:
     37                            <g:if test="${subTaskInstance.primaryAsset}">
     38                                ${fieldValue(bean:subTaskInstance, field:'primaryAsset')}:
    3939                            </g:if>
    4040                            ${fieldValue(bean:subTaskInstance, field:'description')}
    4141                        </td>
    4242
    43                         <td class="idColumn" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
    44                             <g:if test="${taskInstance.taskStatus.id == 1}" >
     43                        <td class="idColumn" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'>
     44                            <g:if test="${subTaskInstance.taskStatus.id == 1}" >
    4545                                <img  src="${resource(dir:'images/skin',file:'not_started.png')}" alt="Not Started" title="Not Started" />
    4646                            </g:if>
    47                             <g:if test="${taskInstance.taskStatus.id == 2}" >
     47                            <g:if test="${subTaskInstance.taskStatus.id == 2}" >
    4848                                <img  src="${resource(dir:'images/skin',file:'arrow_right.png')}" alt="In Progress" title="In Progress" />
    4949                            </g:if>
    50                             <g:if test="${taskInstance.taskStatus.id == 3}" >
     50                            <g:if test="${subTaskInstance.taskStatus.id == 3}" >
    5151                                <img  src="${resource(dir:'images/skin',file:'tick.png')}" alt="Complete" title="Complete" />
    5252                            </g:if>
Note: See TracChangeset for help on using the changeset viewer.