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