

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Period List</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="create" action="create">New Period</g:link></span>
        </div>
        <div class="body">
            <h1>Period List</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                   	        <g:sortableColumn property="id" title="Id" />
                        
                   	        <g:sortableColumn property="isActive" title="Is Active" />
                        
                   	        <g:sortableColumn property="period" title="Period" />
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${periodInstanceList}" status="i" var="periodInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${periodInstance.id}">${fieldValue(bean:periodInstance, field:'id')}</g:link></td>
                        
                            <td>${fieldValue(bean:periodInstance, field:'isActive')}</td>
                        
                            <td>${fieldValue(bean:periodInstance, field:'period')}</td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${periodInstanceTotal}" />
            </div>
        </div>
    </body>
</html>
