Changeset 175 for trunk/grails-app/views/inventoryLocationDetailed
- Timestamp:
- Oct 29, 2009, 8:30:58 PM (15 years ago)
- Location:
- trunk/grails-app/views/inventoryLocationDetailed
- Files:
-
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryLocationDetailed/create.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create StoreLocation</title>7 <title>Create InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Create StoreLocation</h1>15 <h1>Create InventoryLocation</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${ storeLocationInstance}">19 <g:hasErrors bean="${inventoryLocationInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${ storeLocationInstance}" as="list" />21 <g:renderErrors bean="${inventoryLocationInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> … … 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for=" bin">Bin:</label>31 <label for="name">Name:</label> 32 32 </td> 33 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'bin','errors')}">34 <input type="text" maxlength="50" id=" bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/>33 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> 34 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> 35 35 </td> 36 36 </tr> … … 40 40 <label for="inventoryStore">Inventory Store:</label> 41 41 </td> 42 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'inventoryStore','errors')}">43 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${ storeLocationInstance?.inventoryStore?.id}" ></g:select>42 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> 43 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> 44 44 </td> 45 45 </tr> … … 49 49 <label for="isActive">Is Active:</label> 50 50 </td> 51 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'isActive','errors')}">52 <g:checkBox name="isActive" value="${ storeLocationInstance?.isActive}" ></g:checkBox>51 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> 52 <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> 53 53 </td> 54 54 </tr> -
trunk/grails-app/views/inventoryLocationDetailed/edit.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit StoreLocation</title>7 <title>Edit InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Edit StoreLocation</h1>16 <h1>Edit InventoryLocation</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> 19 19 </g:if> 20 <g:hasErrors bean="${ storeLocationInstance}">20 <g:hasErrors bean="${inventoryLocationInstance}"> 21 21 <div class="errors"> 22 <g:renderErrors bean="${ storeLocationInstance}" as="list" />22 <g:renderErrors bean="${inventoryLocationInstance}" as="list" /> 23 23 </div> 24 24 </g:hasErrors> 25 25 <g:form method="post" > 26 <input type="hidden" name="id" value="${ storeLocationInstance?.id}" />27 <input type="hidden" name="version" value="${ storeLocationInstance?.version}" />26 <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" /> 27 <input type="hidden" name="version" value="${inventoryLocationInstance?.version}" /> 28 28 <div class="dialog"> 29 29 <table> … … 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for=" bin">Bin:</label>34 <label for="name">Name:</label> 35 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'bin','errors')}"> 37 <input type="text" maxlength="50" id="bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/> 36 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> 37 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> 38 </td> 39 </tr> 40 41 <tr class="prop"> 42 <td valign="top" class="name"> 43 <label for="inventoryItems">Inventory Items:</label> 44 </td> 45 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryItems','errors')}"> 46 47 <ul> 48 <g:each var="i" in="${inventoryLocationInstance?.inventoryItems?}"> 49 <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 50 </g:each> 51 </ul> 52 <g:link controller="inventoryItem" params="['inventoryLocation.id':inventoryLocationInstance?.id]" action="create">Add InventoryItem</g:link> 53 38 54 </td> 39 55 </tr> … … 43 59 <label for="inventoryStore">Inventory Store:</label> 44 60 </td> 45 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'inventoryStore','errors')}">46 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${ storeLocationInstance?.inventoryStore?.id}" ></g:select>61 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> 62 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> 47 63 </td> 48 64 </tr> … … 52 68 <label for="isActive">Is Active:</label> 53 69 </td> 54 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'isActive','errors')}"> 55 <g:checkBox name="isActive" value="${storeLocationInstance?.isActive}" ></g:checkBox> 56 </td> 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name"> 61 <label for="storedItems">Stored Items:</label> 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'storedItems','errors')}"> 64 65 <ul> 66 <g:each var="s" in="${storeLocationInstance?.storedItems?}"> 67 <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 68 </g:each> 69 </ul> 70 <g:link controller="storedItemDetailed" params="['storeLocation.id':storeLocationInstance?.id]" action="create">Add StoredItem</g:link> 71 70 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> 71 <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> 72 72 </td> 73 73 </tr> -
trunk/grails-app/views/inventoryLocationDetailed/list.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title> StoreLocation List</title>7 <title>InventoryLocation List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1> StoreLocation List</h1>15 <h1>InventoryLocation List</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> … … 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <g:sortableColumn property=" bin" title="Bin" />26 <g:sortableColumn property="name" title="Name" /> 27 27 28 28 <th>Inventory Store</th> … … 33 33 </thead> 34 34 <tbody> 35 <g:each in="${ storeLocationInstanceList}" status="i" var="storeLocationInstance">35 <g:each in="${inventoryLocationInstanceList}" status="i" var="inventoryLocationInstance"> 36 36 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 37 37 38 <td><g:link action="show" id="${ storeLocationInstance.id}">${fieldValue(bean:storeLocationInstance, field:'id')}</g:link></td>38 <td><g:link action="show" id="${inventoryLocationInstance.id}">${fieldValue(bean:inventoryLocationInstance, field:'id')}</g:link></td> 39 39 40 <td>${fieldValue(bean: storeLocationInstance, field:'bin')}</td>40 <td>${fieldValue(bean:inventoryLocationInstance, field:'name')}</td> 41 41 42 <td>${fieldValue(bean: storeLocationInstance, field:'inventoryStore')}</td>42 <td>${fieldValue(bean:inventoryLocationInstance, field:'inventoryStore')}</td> 43 43 44 <td>${fieldValue(bean: storeLocationInstance, field:'isActive')}</td>44 <td>${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td> 45 45 46 46 </tr> … … 50 50 </div> 51 51 <div class="paginateButtons"> 52 <g:paginate total="${ storeLocationInstanceTotal}" />52 <g:paginate total="${inventoryLocationInstanceTotal}" /> 53 53 </div> 54 54 </div> -
trunk/grails-app/views/inventoryLocationDetailed/show.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Show StoreLocation</title>7 <title>Show InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Show StoreLocation</h1>16 <h1>Show InventoryLocation</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> … … 26 26 <td valign="top" class="name">Id:</td> 27 27 28 <td valign="top" class="value">${fieldValue(bean: storeLocationInstance, field:'id')}</td>28 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'id')}</td> 29 29 30 30 </tr> 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name"> Bin:</td>33 <td valign="top" class="name">Name:</td> 34 34 35 <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'bin')}</td> 35 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'name')}</td> 36 37 </tr> 38 39 <tr class="prop"> 40 <td valign="top" class="name">Inventory Items:</td> 41 42 <td valign="top" style="text-align:left;" class="value"> 43 <ul> 44 <g:each var="i" in="${inventoryLocationInstance.inventoryItems}"> 45 <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 46 </g:each> 47 </ul> 48 </td> 36 49 37 50 </tr> … … 40 53 <td valign="top" class="name">Inventory Store:</td> 41 54 42 <td valign="top" class="value"><g:link controller="inventoryStore Detailed" action="show" id="${storeLocationInstance?.inventoryStore?.id}">${storeLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td>55 <td valign="top" class="value"><g:link controller="inventoryStore" action="show" id="${inventoryLocationInstance?.inventoryStore?.id}">${inventoryLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td> 43 56 44 57 </tr> … … 47 60 <td valign="top" class="name">Is Active:</td> 48 61 49 <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'isActive')}</td> 50 51 </tr> 52 53 <tr class="prop"> 54 <td valign="top" class="name">Stored Items:</td> 55 56 <td valign="top" style="text-align:left;" class="value"> 57 <ul> 58 <g:each var="s" in="${storeLocationInstance.storedItems}"> 59 <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 60 </g:each> 61 </ul> 62 </td> 62 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td> 63 63 64 64 </tr> … … 69 69 <div class="buttons"> 70 70 <g:form> 71 <input type="hidden" name="id" value="${ storeLocationInstance?.id}" />71 <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" /> 72 72 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 73 73 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
Note: See TracChangeset
for help on using the changeset viewer.