Changeset 339 for trunk/grails-app/views


Ignore:
Timestamp:
Feb 9, 2010, 3:54:38 AM (14 years ago)
Author:
gav
Message:

Some detailing on Site, Department and Section list veiws.

Location:
trunk/grails-app/views
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/departmentDetailed/list.gsp

    r268 r339  
    2828                       
    2929                                <g:sortableColumn property="isActive" title="Is Active" />
     30
     31                            <th></th>
    3032                       
    3133                        </tr>
     
    3335                    <tbody>
    3436                    <g:each in="${departmentInstanceList}" status="i" var="departmentInstance">
    35                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
     37                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/departmentDetailed/show/${departmentInstance.id}"'/>
    3638                       
    37                             <td><g:link action="show" id="${departmentInstance.id}">${fieldValue(bean:departmentInstance, field:'id')}</g:link></td>
     39                            <td>${fieldValue(bean:departmentInstance, field:'id')}</td>
    3840                       
    3941                            <td>${fieldValue(bean:departmentInstance, field:'name')}</td>
     
    4244                       
    4345                            <td>${fieldValue(bean:departmentInstance, field:'isActive')}</td>
     46
     47                            <td>
     48                                <g:link action="show" id="${departmentInstance.id}">
     49                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
     50                                </g:link>
     51                            </td>
    4452                       
    4553                        </tr>
  • trunk/grails-app/views/sectionDetailed/list.gsp

    r273 r339  
    3232                           
    3333                                <th>Site</th>
     34
     35                            <th></th>
    3436                           
    3537                        </tr>
     
    3739                    <tbody>
    3840                    <g:each in="${sectionInstanceList}" status="i" var="sectionInstance">
    39                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
     41                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/sectionDetailed/show/${sectionInstance.id}"'/>
    4042                       
    41                             <td><g:link action="show" id="${sectionInstance.id}">${fieldValue(bean:sectionInstance, field:'id')}</g:link></td>
     43                            <td>${fieldValue(bean:sectionInstance, field:'id')}</td>
    4244                       
    4345                            <td>${fieldValue(bean:sectionInstance, field:'name')}</td>
     
    5052                       
    5153                            <td>${fieldValue(bean:sectionInstance, field:'site')}</td>
     54
     55                            <td>
     56                                <g:link action="show" id="${sectionInstance.id}">
     57                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
     58                                </g:link>
     59                            </td>
    5260                       
    5361                        </tr>
  • trunk/grails-app/views/siteDetailed/list.gsp

    r268 r339  
    2828                       
    2929                                <g:sortableColumn property="isActive" title="Is Active" />
     30
     31                            <th></th>
    3032                       
    3133                        </tr>
     
    3335                    <tbody>
    3436                    <g:each in="${siteInstanceList}" status="i" var="siteInstance">
    35                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
     37                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/siteDetailed/show/${siteInstance.id}"'/>
    3638                       
    37                             <td><g:link action="show" id="${siteInstance.id}">${fieldValue(bean:siteInstance, field:'id')}</g:link></td>
     39                            <td>${fieldValue(bean:siteInstance, field:'id')}</td>
    3840                       
    3941                            <td>${fieldValue(bean:siteInstance, field:'name')}</td>
     
    4244                       
    4345                            <td>${fieldValue(bean:siteInstance, field:'isActive')}</td>
     46
     47                            <td>
     48                                <g:link action="show" id="${siteInstance.id}">
     49                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
     50                                </g:link>
     51                            </td>
    4452                       
    4553                        </tr>
Note: See TracChangeset for help on using the changeset viewer.