Changeset 122 for trunk/grails-app/views/assetType
- Timestamp:
- May 1, 2009, 3:27:41 PM (16 years ago)
- Location:
- trunk/grails-app/views/assetType
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assetType/create.gsp
r118 r122 47 47 <tr class="prop"> 48 48 <td valign="top" class="name"> 49 <label for="lifeplan">Lifeplan:</label>50 </td>51 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'lifeplan','errors')}">52 <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${assetTypeInstance?.lifeplan?.id}" ></g:select>53 </td>54 </tr>55 56 <tr class="prop">57 <td valign="top" class="name">58 49 <label for="name">Name:</label> 59 50 </td> 60 51 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'name','errors')}"> 61 52 <input type="text" id="name" name="name" value="${fieldValue(bean:assetTypeInstance,field:'name')}"/> 62 </td>63 </tr>64 65 <tr class="prop">66 <td valign="top" class="name">67 <label for="systemSection">System Section:</label>68 </td>69 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'systemSection','errors')}">70 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetTypeInstance?.systemSection?.id}" ></g:select>71 53 </td> 72 54 </tr> -
trunk/grails-app/views/assetType/edit.gsp
r118 r122 45 45 <tr class="prop"> 46 46 <td valign="top" class="name"> 47 <label for="assetExtendedAttributes">Asset Extended Attributes:</label> 48 </td> 49 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'assetExtendedAttributes','errors')}"> 50 51 <ul> 52 <g:each var="a" in="${assetTypeInstance?.assetExtendedAttributes?}"> 53 <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 54 </g:each> 55 </ul> 56 <g:link controller="assetExtendedAttribute" params="['assetType.id':assetTypeInstance?.id]" action="create">Add AssetExtendedAttribute</g:link> 57 58 </td> 59 </tr> 60 61 <tr class="prop"> 62 <td valign="top" class="name"> 47 63 <label for="assets">Assets:</label> 48 64 </td> … … 79 95 <tr class="prop"> 80 96 <td valign="top" class="name"> 81 <label for=" lifeplan">Lifeplan:</label>97 <label for="maintenanceActions">Maintenance Actions:</label> 82 98 </td> 83 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'lifeplan','errors')}"> 84 <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${assetTypeInstance?.lifeplan?.id}" ></g:select> 99 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'maintenanceActions','errors')}"> 100 101 <ul> 102 <g:each var="m" in="${assetTypeInstance?.maintenanceActions?}"> 103 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 104 </g:each> 105 </ul> 106 <g:link controller="maintenanceAction" params="['assetType.id':assetTypeInstance?.id]" action="create">Add MaintenanceAction</g:link> 107 85 108 </td> 86 109 </tr> … … 92 115 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'name','errors')}"> 93 116 <input type="text" id="name" name="name" value="${fieldValue(bean:assetTypeInstance,field:'name')}"/> 94 </td>95 </tr>96 97 <tr class="prop">98 <td valign="top" class="name">99 <label for="systemSection">System Section:</label>100 </td>101 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'systemSection','errors')}">102 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetTypeInstance?.systemSection?.id}" ></g:select>103 117 </td> 104 118 </tr> -
trunk/grails-app/views/assetType/list.gsp
r118 r122 28 28 <g:sortableColumn property="isActive" title="Is Active" /> 29 29 30 <th>Lifeplan</th>31 32 30 <g:sortableColumn property="name" title="Name" /> 33 31 34 <th>System Section</th>35 36 32 </tr> 37 33 </thead> … … 46 42 <td>${fieldValue(bean:assetTypeInstance, field:'isActive')}</td> 47 43 48 <td>${fieldValue(bean:assetTypeInstance, field:'lifeplan')}</td>49 50 44 <td>${fieldValue(bean:assetTypeInstance, field:'name')}</td> 51 52 <td>${fieldValue(bean:assetTypeInstance, field:'systemSection')}</td>53 45 54 46 </tr> -
trunk/grails-app/views/assetType/show.gsp
r118 r122 44 44 45 45 <tr class="prop"> 46 <td valign="top" class="name">Asset Extended Attributes:</td> 47 48 <td valign="top" style="text-align:left;" class="value"> 49 <ul> 50 <g:each var="a" in="${assetTypeInstance.assetExtendedAttributes}"> 51 <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 52 </g:each> 53 </ul> 54 </td> 55 56 </tr> 57 58 <tr class="prop"> 46 59 <td valign="top" class="name">Assets:</td> 47 60 … … 71 84 72 85 <tr class="prop"> 73 <td valign="top" class="name"> Lifeplan:</td>86 <td valign="top" class="name">Maintenance Actions:</td> 74 87 75 <td valign="top" class="value"><g:link controller="lifePlan" action="show" id="${assetTypeInstance?.lifeplan?.id}">${assetTypeInstance?.lifeplan?.encodeAsHTML()}</g:link></td> 88 <td valign="top" style="text-align:left;" class="value"> 89 <ul> 90 <g:each var="m" in="${assetTypeInstance.maintenanceActions}"> 91 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 92 </g:each> 93 </ul> 94 </td> 76 95 77 96 </tr> … … 81 100 82 101 <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'name')}</td> 83 84 </tr>85 86 <tr class="prop">87 <td valign="top" class="name">System Section:</td>88 89 <td valign="top" class="value"><g:link controller="systemSection" action="show" id="${assetTypeInstance?.systemSection?.id}">${assetTypeInstance?.systemSection?.encodeAsHTML()}</g:link></td>90 102 91 103 </tr>
Note: See TracChangeset
for help on using the changeset viewer.