Changeset 271 for trunk/grails-app/views/assetDetailed/create.gsp
- Timestamp:
- Jan 15, 2010, 11:37:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assetDetailed/create.gsp
r161 r271 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create Asset</title> 7 <title>Create Asset</title> 8 8 <nav:resources override="true"/> 9 9 </head> … … 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')}"/>33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 34 34 </td> 35 </tr> 35 </tr> 36 36 37 37 <tr class="prop"> … … 40 40 </td> 41 41 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 42 <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 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')}"/> 52 </td> 53 </tr> 54 55 <tr class="prop"> 56 <td valign="top" class="name"> 57 <label for="assetType">Asset Type:</label> 58 </td> 59 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}"> 60 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 61 43 </td> 62 44 </tr> 63 64 <tr class="prop"> 65 <td valign="top" class="name"> 66 <label for="systemSection">System Section:</label> 67 </td> 68 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}"> 69 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select> 70 </td> 71 </tr> 72 45 73 46 <tr class="prop"> 74 47 <td valign="top" class="name"> … … 79 52 </td> 80 53 </tr> 81 54 55 <tr class="prop"> 56 <td valign="top" class="name"> 57 <label for="section">Section:</label> 58 </td> 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> 61 </td> 62 </tr> 63 82 64 </tbody> 83 65 </table>
Note: See TracChangeset
for help on using the changeset viewer.