Changeset 374 for trunk/grails-app/views/manufacturerDetailed/edit.gsp
- Timestamp:
- Feb 18, 2010, 1:20:22 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/manufacturerDetailed/edit.gsp
r178 r374 6 6 <meta name="layout" content="main" /> 7 7 <title>Edit Manufacturer</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">Manufacturer List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New Manufacturer</g:link></span> 12 <nav:renderSubItems group="navAlt"/> 13 13 </div> 14 14 <div class="body"> 15 <h1>Edit Manufacturer</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:manufacturerInstance,field:' description','errors')}">36 <input type="text" id=" description" name="description" value="${fieldValue(bean:manufacturerInstance,field:'description')}"/>34 <td valign="top" class="value ${hasErrors(bean:manufacturerInstance,field:'name','errors')}"> 35 <input type="text" id="name" name="name" value="${fieldValue(bean:manufacturerInstance,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:manufacturerInstance,field:' inventoryItems','errors')}">45 43 <td valign="top" class="value ${hasErrors(bean:manufacturerInstance,field:'description','errors')}"> 44 <input type="text" id="description" name="description" value="${fieldValue(bean:manufacturerInstance,field:'description')}"/> 46 45 </td> 47 46 </tr> … … 64 63 </td> 65 64 </tr> 66 67 <tr class="prop"> 68 <td valign="top" class="name"> 69 <label for="name">Name:</label> 70 </td> 71 <td valign="top" class="value ${hasErrors(bean:manufacturerInstance,field:'name','errors')}"> 72 <input type="text" id="name" name="name" value="${fieldValue(bean:manufacturerInstance,field:'name')}"/> 73 </td> 74 </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="${manufacturerInstance.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.