Changeset 374 for trunk/grails-app/views/supplierDetailed/edit.gsp
- Timestamp:
- Feb 18, 2010, 1:20:22 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/supplierDetailed/edit.gsp
r178 r374 6 6 <meta name="layout" content="main" /> 7 7 <title>Edit Supplier</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">Supplier List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New Supplier</g:link></span> 12 <nav:renderSubItems group="navAlt"/> 13 13 </div> 14 14 <div class="body"> 15 <h1>Edit Supplier</h1>16 15 <g:if test="${flash.message}"> 17 16 <div class="message">${flash.message}</div> … … 31 30 <tr class="prop"> 32 31 <td valign="top" class="name"> 33 <label for=" description">Description:</label>32 <label for="name">Name:</label> 34 33 </td> 35 <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:' description','errors')}">36 <input type="text" id=" description" name="description" value="${fieldValue(bean:supplierInstance,field:'description')}"/>34 <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'name','errors')}"> 35 <input type="text" id="name" name="name" value="${fieldValue(bean:supplierInstance,field:'name')}"/> 37 36 </td> 38 37 </tr> … … 40 39 <tr class="prop"> 41 40 <td valign="top" class="name"> 42 <label for=" inventoryItems">Inventory Items:</label>41 <label for="description">Description:</label> 43 42 </td> 44 <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:' inventoryItems','errors')}">45 43 <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'description','errors')}"> 44 <input type="text" id="description" name="description" value="${fieldValue(bean:supplierInstance,field:'description')}"/> 46 45 </td> 47 46 </tr> … … 58 57 <tr class="prop"> 59 58 <td valign="top" class="name"> 60 <label for="name">Name:</label>61 </td>62 <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'name','errors')}">63 <input type="text" id="name" name="name" value="${fieldValue(bean:supplierInstance,field:'name')}"/>64 </td>65 </tr>66 67 <tr class="prop">68 <td valign="top" class="name">69 59 <label for="supplierType">Supplier Type:</label> 70 60 </td> … … 73 63 </td> 74 64 </tr> 65 66 <tr class="prop"> 67 <td valign="top" class="name">Inventory Items:</td> 68 69 <td valign="top" style="text-align:left;" class="value"> 70 <ul> 71 <g:each var="i" in="${supplierInstance.inventoryItems}"> 72 <li><g:link controller="inventoryItemDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 73 </g:each> 74 </ul> 75 </td> 76 77 </tr> 75 78 76 79 </tbody> … … 79 82 <div class="buttons"> 80 83 <span class="button"><g:actionSubmit class="save" value="Update" /></span> 84 <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> 81 85 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 82 86 </div>
Note: See TracChangeset
for help on using the changeset viewer.