Ignore:
Timestamp:
Apr 19, 2010, 2:07:48 AM (14 years ago)
Author:
gav
Message:

Improved table row onclick implementation for all detailed list and search views.

File:
1 edited

Legend:

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

    r476 r498  
    9797                                <g:sortableColumn property="description" title="Description" params="${filterParams}" />
    9898
    99                                 <g:sortableColumn  property="taskPriority" title="Task Priority" params="${filterParams}" />
     99                                <g:sortableColumn  property="taskPriority" title="Priority" params="${filterParams}" />
    100100
    101                                 <g:sortableColumn  property="taskStatus" title="Task Status" params="${filterParams}" />
     101                                <g:sortableColumn  property="taskStatus" title="Type" params="${filterParams}" />
     102
     103                                <g:sortableColumn  property="taskStatus" title="Status" params="${filterParams}" />
    102104
    103105                                <th></th>
     
    108110                        <tbody>
    109111                        <g:each in="${taskInstanceList}" status="i" var="taskInstance">
    110                         <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'/>
     112                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/>
    111113
    112                                 <td class="idColumn">
     114                                <td class="idColumn" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
    113115                                    <g:if test="${taskInstance.attentionFlag}">
    114116                                        <img  src="${resource(dir:'images/skin',file:'flag_red.png')}" alt="Flag" />
     
    116118                                </td>
    117119
    118                                 <td class="idColumn">${fieldValue(bean:taskInstance, field:'id')}</td>
     120                                <td class="idColumn" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
     121                                    ${fieldValue(bean:taskInstance, field:'id')}
     122                                </td>
    119123
    120                                 <td><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td>
     124                                <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
     125                                    <g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/>
     126                                </td>
    121127
    122                                 <td>${fieldValue(bean:taskInstance, field:'description')}</td>
     128                                <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
     129                                    ${fieldValue(bean:taskInstance, field:'description')}
     130                                </td>
    123131
    124                                 <td>${fieldValue(bean:taskInstance, field:'taskPriority')}</td>
     132                                <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
     133                                    ${fieldValue(bean:taskInstance, field:'taskPriority')}
     134                                </td>
    125135
    126                                 <td>${fieldValue(bean:taskInstance, field:'taskStatus')}</td>
     136                                <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
     137                                    ${fieldValue(bean:taskInstance, field:'taskType')}
     138                                </td>
    127139
    128                                 <td>
     140                                <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
     141                                    ${fieldValue(bean:taskInstance, field:'taskStatus')}
     142                                </td>
     143
     144                                <td class="notClickable">
    129145                                    <g:link action="show" id="${taskInstance.id}">
    130146                                        <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
Note: See TracChangeset for help on using the changeset viewer.