

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>InventoryStore List</title>
        <nav:resources override="true"/>
    </head>
    <body>
        <div class="nav">
            <nav:renderSubItems group="navAlt"/>
        </div>
        <div class="body">
            <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="name" title="Name" />

                            <g:sortableColumn property="description" title="Description" />

                            <g:sortableColumn property="isActive" title="Is Active" />

                            <th>Site</th>

                            <th></th>
                   	    
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${inventoryStoreInstanceList}" status="i" var="inventoryStoreInstance">
                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/>
                        
                            <td onclick='window.location = "${request.getContextPath()}/inventoryStoreDetailed/show/${inventoryStoreInstance.id}"'>
                                ${fieldValue(bean:inventoryStoreInstance, field:'id')}
                            </td>
                        
                            <td onclick='window.location = "${request.getContextPath()}/inventoryStoreDetailed/show/${inventoryStoreInstance.id}"'>
                                ${fieldValue(bean:inventoryStoreInstance, field:'name')}
                            </td>
                        
                            <td onclick='window.location = "${request.getContextPath()}/inventoryStoreDetailed/show/${inventoryStoreInstance.id}"'>
                                ${fieldValue(bean:inventoryStoreInstance, field:'description')}
                            </td>
                        
                            <td onclick='window.location = "${request.getContextPath()}/inventoryStoreDetailed/show/${inventoryStoreInstance.id}"'>
                                ${fieldValue(bean:inventoryStoreInstance, field:'isActive')}
                            </td>
                        
                            <td onclick='window.location = "${request.getContextPath()}/inventoryStoreDetailed/show/${inventoryStoreInstance.id}"'>
                                ${fieldValue(bean:inventoryStoreInstance, field:'site')}
                            </td>

                            <td class="notClickable">
                                <g:link action="show" id="${inventoryStoreInstance.id}">
                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
                                </g:link>
                            </td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${inventoryStoreInstanceTotal}" />
            </div>
        </div>
    </body>
</html>
