Changeset 377 for trunk/grails-app/views/inventoryLocationDetailed
- Timestamp:
- Feb 18, 2010, 3:09:18 AM (15 years ago)
- Location:
- trunk/grails-app/views/inventoryLocationDetailed
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryLocationDetailed/create.gsp
r178 r377 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create InventoryLocation</title> 7 <title>Create InventoryLocation</title> 8 <nav:resources override="true"/> 8 9 </head> 9 10 <body> 10 11 <div class="nav"> 11 < span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span>12 <nav:renderSubItems group="navAlt"/> 12 13 </div> 13 14 <div class="body"> 14 <h1>Create InventoryLocation</h1>15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> -
trunk/grails-app/views/inventoryLocationDetailed/edit.gsp
r178 r377 6 6 <meta name="layout" content="main" /> 7 7 <title>Edit InventoryLocation</title> 8 <nav:resources override="true"/> 8 9 </head> 9 10 <body> 10 11 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 12 <nav:renderSubItems group="navAlt"/> 13 13 </div> 14 14 <div class="body"> 15 <h1>Edit InventoryLocation</h1>16 15 <g:if test="${flash.message}"> 17 16 <div class="message">${flash.message}</div> … … 40 39 <tr class="prop"> 41 40 <td valign="top" class="name"> 42 <label for="inventoryItems">Inventory Items:</label>43 </td>44 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryItems','errors')}">45 46 <ul>47 <g:each var="i" in="${inventoryLocationInstance?.inventoryItems?}">48 <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>49 </g:each>50 </ul>51 <g:link controller="inventoryItem" params="['inventoryLocation.id':inventoryLocationInstance?.id]" action="create">Add InventoryItem</g:link>52 53 </td>54 </tr>55 56 <tr class="prop">57 <td valign="top" class="name">58 41 <label for="inventoryStore">Inventory Store:</label> 59 42 </td> … … 72 55 </tr> 73 56 57 <tr class="prop"> 58 <td valign="top" class="name"> 59 <label for="inventoryItems">Inventory Items:</label> 60 </td> 61 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryItems','errors')}"> 62 63 <ul> 64 <g:each var="i" in="${inventoryLocationInstance?.inventoryItems?}"> 65 <li><g:link controller="inventoryItemDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 66 </g:each> 67 </ul> 68 <g:link controller="inventoryItemDetailed" params="['inventoryLocation.id':inventoryLocationInstance?.id]" action="create">Add InventoryItem</g:link> 69 70 </td> 71 </tr> 72 74 73 </tbody> 75 74 </table> … … 77 76 <div class="buttons"> 78 77 <span class="button"><g:actionSubmit class="save" value="Update" /></span> 78 <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> 79 79 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 80 80 </div> -
trunk/grails-app/views/inventoryLocationDetailed/list.gsp
r178 r377 6 6 <meta name="layout" content="main" /> 7 7 <title>InventoryLocation List</title> 8 <nav:resources override="true"/> 8 9 </head> 9 10 <body> 10 11 <div class="nav"> 11 < span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span>12 <nav:renderSubItems group="navAlt"/> 12 13 </div> 13 14 <div class="body"> 14 <h1>InventoryLocation List</h1>15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> … … 21 21 <tr> 22 22 23 <g:sortableColumn property="id" title="Id" /> 24 25 <g:sortableColumn property="name" title="Name" /> 26 27 <th>Inventory Store</th> 28 29 <g:sortableColumn property="isActive" title="Is Active" /> 23 <g:sortableColumn property="id" title="Id" /> 24 25 <g:sortableColumn property="name" title="Name" /> 26 27 <th>Inventory Store</th> 28 29 <g:sortableColumn property="isActive" title="Is Active" /> 30 31 <th></th> 30 32 31 33 </tr> … … 33 35 <tbody> 34 36 <g:each in="${inventoryLocationInstanceList}" status="i" var="inventoryLocationInstance"> 35 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 37 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/inventoryLocationDetailed/show/${inventoryLocationInstance.id}"'/> 38 36 39 37 <td> <g:link action="show" id="${inventoryLocationInstance.id}">${fieldValue(bean:inventoryLocationInstance, field:'id')}</g:link></td>40 <td>${fieldValue(bean:inventoryLocationInstance, field:'id')}</td> 38 41 39 42 <td>${fieldValue(bean:inventoryLocationInstance, field:'name')}</td> … … 42 45 43 46 <td>${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td> 47 48 <td> 49 <g:link action="show" id="${inventoryLocationInstance.id}"> 50 <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 51 </g:link> 52 </td> 44 53 45 54 </tr> -
trunk/grails-app/views/inventoryLocationDetailed/show.gsp
r178 r377 6 6 <meta name="layout" content="main" /> 7 7 <title>Show InventoryLocation</title> 8 <nav:resources override="true"/> 8 9 </head> 9 10 <body> 10 11 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 12 <nav:renderSubItems group="navAlt"/> 13 13 </div> 14 14 <div class="body"> 15 <h1>Show InventoryLocation</h1>16 15 <g:if test="${flash.message}"> 17 16 <div class="message">${flash.message}</div> … … 37 36 38 37 <tr class="prop"> 39 <td valign="top" class="name">Inventory Items:</td>40 41 <td valign="top" style="text-align:left;" class="value">42 <ul>43 <g:each var="i" in="${inventoryLocationInstance.inventoryItems}">44 <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>45 </g:each>46 </ul>47 </td>48 49 </tr>50 51 <tr class="prop">52 38 <td valign="top" class="name">Inventory Store:</td> 53 39 54 <td valign="top" class="value"><g:link controller="inventoryStore " action="show" id="${inventoryLocationInstance?.inventoryStore?.id}">${inventoryLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td>40 <td valign="top" class="value"><g:link controller="inventoryStoreDetailed" action="show" id="${inventoryLocationInstance?.inventoryStore?.id}">${inventoryLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td> 55 41 56 42 </tr> … … 60 46 61 47 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td> 48 49 </tr> 50 51 <tr class="prop"> 52 <td valign="top" class="name">Inventory Items:</td> 53 54 <td valign="top" style="text-align:left;" class="value"> 55 <ul> 56 <g:each var="i" in="${inventoryLocationInstance.inventoryItems}"> 57 <li><g:link controller="inventoryItemDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 58 </g:each> 59 </ul> 60 </td> 62 61 63 62 </tr>
Note: See TracChangeset
for help on using the changeset viewer.