Changeset 268 for trunk/grails-app/views/assetSubItem/create.gsp
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assetSubItem/create.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create Asset Type</title>7 <title>Create AssetSubItem</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">Asset TypeList</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">AssetSubItem List</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1>Create Asset Type</h1>14 <h1>Create AssetSubItem</h1> 15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> 17 17 </g:if> 18 <g:hasErrors bean="${asset TypeInstance}">18 <g:hasErrors bean="${assetSubItemInstance}"> 19 19 <div class="errors"> 20 <g:renderErrors bean="${asset TypeInstance}" as="list" />20 <g:renderErrors bean="${assetSubItemInstance}" as="list" /> 21 21 </div> 22 22 </g:hasErrors> … … 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for=" costCode">Cost Code:</label>30 <label for="name">Name:</label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:asset TypeInstance,field:'costCode','errors')}">33 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetTypeInstance,field:'costCode')}"/>32 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'name','errors')}"> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetSubItemInstance,field:'name')}"/> 34 34 </td> 35 35 </tr> … … 39 39 <label for="description">Description:</label> 40 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:asset TypeInstance,field:'description','errors')}">42 <input type="text" id="description" name="description" value="${fieldValue(bean:assetTypeInstance,field:'description')}"/>41 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'description','errors')}"> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetSubItemInstance,field:'description')}"/> 43 43 </td> 44 44 </tr> … … 48 48 <label for="isActive">Is Active:</label> 49 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:asset TypeInstance,field:'isActive','errors')}">51 <g:checkBox name="isActive" value="${asset TypeInstance?.isActive}" ></g:checkBox>50 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'isActive','errors')}"> 51 <g:checkBox name="isActive" value="${assetSubItemInstance?.isActive}" ></g:checkBox> 52 52 </td> 53 53 </tr> … … 55 55 <tr class="prop"> 56 56 <td valign="top" class="name"> 57 <label for=" name">Name:</label>57 <label for="asset">Asset:</label> 58 58 </td> 59 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'name','errors')}"> 60 <input type="text" id="name" name="name" value="${fieldValue(bean:assetTypeInstance,field:'name')}"/> 59 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'asset','errors')}"> 60 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetSubItemInstance?.asset?.id}" noSelection="['null':'']"></g:select> 61 </td> 62 </tr> 63 64 <tr class="prop"> 65 <td valign="top" class="name"> 66 <label for="parentItem">Parent Item:</label> 67 </td> 68 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'parentItem','errors')}"> 69 <g:select optionKey="id" from="${AssetSubItem.list()}" name="parentItem.id" value="${assetSubItemInstance?.parentItem?.id}" noSelection="['null':'']"></g:select> 61 70 </td> 62 71 </tr>
Note: See TracChangeset
for help on using the changeset viewer.