Ignore:
Timestamp:
Apr 26, 2010, 4:53:36 PM (11 years ago)
Author:
roberth
Message:

Updated the fields of person to contain title, gender, prefix and mobile phone. Also updated the views so that the pagination buttons appear beneath the 'add new' button.

File:
1 edited

Legend:

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

    r379 r382  
    2121                            <g:sortableColumn property="firstName" title="${message(code: 'person.firstName.label', default: 'First Name')}" />
    2222                       
    23                             <g:sortableColumn property="midInitials" title="${message(code: 'person.midInitials.label', default: 'Mid Initials')}" />
     23                            <g:sortableColumn property="prefix" title="${message(code: 'person.prefix.label', default: 'Prefix')}" />
    2424                       
    2525                            <g:sortableColumn property="lastName" title="${message(code: 'person.lasttName.label', default: 'Last Name')}" />
    2626
    27                             <g:sortableColumn property="phone" title="${message(code: 'person.phone.label', default: 'Phone')}" />
     27                            <g:sortableColumn property="phone" title="${message(code: 'person.phone.label', default: 'Work Phone')}" />
    2828                       
    2929                            <g:sortableColumn property="email" title="${message(code: 'person.email.label', default: 'Email')}" />
     
    3636                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
    3737                       
    38                             <td><g:link action="show" id="${personInstance.id}">${fieldValue(bean: personInstance, field: "firstName")}</g:link></td>
     38                            <td>${fieldValue(bean: personInstance, field: "firstName")}</td>
    3939                       
    40                             <td>${fieldValue(bean: personInstance, field: "midInitials")}</td>
     40                            <td>${fieldValue(bean: personInstance, field: "prefix")}</td>
    4141                       
    4242                            <td><g:link action="show" id="${personInstance.id}">${fieldValue(bean: personInstance, field: "lastName")}</g:link></td>
     
    5858                </table>
    5959            </div>
    60             <div class="paginateButtons">
    61                 <g:paginate total="${personInstanceTotal}" />
    62             </div>
    6360            <div class="buttons">
    6461                <span class="button"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
     62            </div>
     63            <div class="paginateButtons">
     64                <g:paginate total="${personInstanceTotal}" prev="&laquo; Previous" next="&raquo; Next" />
    6565            </div>
    6666
Note: See TracChangeset for help on using the changeset viewer.