Changeset 268 for trunk/grails-app/views/asset/edit.gsp
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/asset/edit.gsp
r178 r268 34 34 </td> 35 35 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 36 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 37 </td> 38 </tr> 39 40 <tr class="prop"> 41 <td valign="top" class="name"> 42 <label for="description">Description:</label> 43 </td> 44 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 46 </td> 47 </tr> 48 49 <tr class="prop"> 50 <td valign="top" class="name"> 51 <label for="isActive">Is Active:</label> 52 </td> 53 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'isActive','errors')}"> 54 <g:checkBox name="isActive" value="${assetInstance?.isActive}" ></g:checkBox> 55 </td> 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name"> 60 <label for="section">Section:</label> 61 </td> 62 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'section','errors')}"> 63 <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${assetInstance?.section?.id}" ></g:select> 37 64 </td> 38 65 </tr> … … 56 83 <tr class="prop"> 57 84 <td valign="top" class="name"> 58 <label for="asset Type">Asset Type:</label>85 <label for="assetSubItem">Asset Sub Item:</label> 59 86 </td> 60 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}"> 61 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select> 62 </td> 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name"> 67 <label for="costCode">Cost Code:</label> 68 </td> 69 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'costCode','errors')}"> 70 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetInstance,field:'costCode')}"/> 71 </td> 72 </tr> 73 74 <tr class="prop"> 75 <td valign="top" class="name"> 76 <label for="description">Description:</label> 77 </td> 78 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 79 <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 80 </td> 81 </tr> 82 83 <tr class="prop"> 84 <td valign="top" class="name"> 85 <label for="isActive">Is Active:</label> 86 </td> 87 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'isActive','errors')}"> 88 <g:checkBox name="isActive" value="${assetInstance?.isActive}" ></g:checkBox> 87 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetSubItem','errors')}"> 88 89 <ul> 90 <g:each var="a" in="${assetInstance?.assetSubItem?}"> 91 <li><g:link controller="assetSubItem" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 92 </g:each> 93 </ul> 94 <g:link controller="assetSubItem" params="['asset.id':assetInstance?.id]" action="create">Add AssetSubItem</g:link> 95 89 96 </td> 90 97 </tr> … … 106 113 </tr> 107 114 108 <tr class="prop">109 <td valign="top" class="name">110 <label for="systemSection">System Section:</label>111 </td>112 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}">113 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>114 </td>115 </tr>116 117 115 </tbody> 118 116 </table>
Note: See TracChangeset
for help on using the changeset viewer.