Changeset 268 for trunk/grails-app/views/asset/create.gsp
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/asset/create.gsp
r178 r268 31 31 </td> 32 32 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 33 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 39 <label for="assetType">Asset Type:</label> 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}"> 42 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="costCode">Cost Code:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'costCode','errors')}"> 51 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetInstance,field:'costCode')}"/> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 52 34 </td> 53 35 </tr> … … 58 40 </td> 59 41 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 60 <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 61 43 </td> 62 44 </tr> … … 73 55 <tr class="prop"> 74 56 <td valign="top" class="name"> 75 <label for="s ystemSection">SystemSection:</label>57 <label for="section">Section:</label> 76 58 </td> 77 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'s ystemSection','errors')}">78 <g:select optionKey="id" from="${S ystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>59 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'section','errors')}"> 60 <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${assetInstance?.section?.id}" ></g:select> 79 61 </td> 80 62 </tr>
Note: See TracChangeset
for help on using the changeset viewer.