Changeset 268 for trunk/grails-app/views/asset
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- Location:
- trunk/grails-app/views/asset
- Files:
-
- 4 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> -
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> -
trunk/grails-app/views/asset/list.gsp
r178 r268 25 25 <g:sortableColumn property="name" title="Name" /> 26 26 27 <th>Asset Type</th>28 29 <g:sortableColumn property="costCode" title="Cost Code" />30 31 27 <g:sortableColumn property="description" title="Description" /> 32 28 33 29 <g:sortableColumn property="isActive" title="Is Active" /> 34 30 31 <th>Section</th> 32 35 33 </tr> 36 34 </thead> … … 43 41 <td>${fieldValue(bean:assetInstance, field:'name')}</td> 44 42 45 <td>${fieldValue(bean:assetInstance, field:'assetType')}</td>46 47 <td>${fieldValue(bean:assetInstance, field:'costCode')}</td>48 49 43 <td>${fieldValue(bean:assetInstance, field:'description')}</td> 50 44 51 45 <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> 46 47 <td>${fieldValue(bean:assetInstance, field:'section')}</td> 52 48 53 49 </tr> -
trunk/grails-app/views/asset/show.gsp
r178 r268 37 37 38 38 <tr class="prop"> 39 <td valign="top" class="name">Description:</td> 40 41 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> 42 43 </tr> 44 45 <tr class="prop"> 46 <td valign="top" class="name">Is Active:</td> 47 48 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> 49 50 </tr> 51 52 <tr class="prop"> 53 <td valign="top" class="name">Section:</td> 54 55 <td valign="top" class="value"><g:link controller="section" action="show" id="${assetInstance?.section?.id}">${assetInstance?.section?.encodeAsHTML()}</g:link></td> 56 57 </tr> 58 59 <tr class="prop"> 39 60 <td valign="top" class="name">Asset Extended Attributes:</td> 40 61 … … 50 71 51 72 <tr class="prop"> 52 <td valign="top" class="name">Asset Type:</td>73 <td valign="top" class="name">Asset Sub Item:</td> 53 74 54 <td valign="top" class="value"><g:link controller="assetType" action="show" id="${assetInstance?.assetType?.id}">${assetInstance?.assetType?.encodeAsHTML()}</g:link></td> 55 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name">Cost Code:</td> 60 61 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'costCode')}</td> 62 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name">Description:</td> 67 68 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> 69 70 </tr> 71 72 <tr class="prop"> 73 <td valign="top" class="name">Is Active:</td> 74 75 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> 75 <td valign="top" style="text-align:left;" class="value"> 76 <ul> 77 <g:each var="a" in="${assetInstance.assetSubItem}"> 78 <li><g:link controller="assetSubItem" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 79 </g:each> 80 </ul> 81 </td> 76 82 77 83 </tr> … … 90 96 </tr> 91 97 92 <tr class="prop">93 <td valign="top" class="name">System Section:</td>94 95 <td valign="top" class="value"><g:link controller="systemSection" action="show" id="${assetInstance?.systemSection?.id}">${assetInstance?.systemSection?.encodeAsHTML()}</g:link></td>96 97 </tr>98 99 98 </tbody> 100 99 </table>
Note: See TracChangeset
for help on using the changeset viewer.