Ignore:
Timestamp:
Feb 4, 2011, 12:04:10 PM (10 years ago)
Author:
robert@…
Message:

Implemented pagination on study list pages

File:
1 edited

Legend:

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

    r1430 r1494  
    99<body>
    1010
    11 <g:form action="list_extended">
     11<g:form action="list_extended" name="list_extended">
    1212        <div class="body">
    1313                <h1><g:message code="default.list.label" args="[entityName]"/></h1>
     
    7878                        <sec:ifLoggedIn>
    7979                                <span class="button"><g:link class="create" controller="studyWizard" params="[jump:'create']"><g:message code="default.new.label" args="[entityName]"/></g:link></span>
     80                                <span class="button"><a class="compare" href="#" onClick="$( 'form#list_extended' ).first().submit(); return false;">Compare selected studies</a></span>
    8081                        </sec:ifLoggedIn>
     82                       
    8183                </div>
    8284                <div class="paginateButtons">
    83                         <g:paginate total="${studyInstanceTotal}" prev="&laquo; Previous" next="&raquo; Next"/>
    84                         <br>
    85                         <INPUT TYPE=submit name=submit Value="Compare selected studies">
     85                        <g:paginate max="10" total="${studyInstanceTotal}" prev="&laquo; Previous" next="&raquo; Next"/>
    8686                </div>
    8787        </div>
Note: See TracChangeset for help on using the changeset viewer.