Changeset 124 for trunk/grails-app/views/assetDetailed
- Timestamp:
- May 4, 2009, 1:59:11 PM (16 years ago)
- Location:
- trunk/grails-app/views/assetDetailed
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assetDetailed/create.gsp
r122 r124 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for="name">Name:</label> 32 </td> 33 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 34 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 35 </td> 36 </tr> 37 38 <tr class="prop"> 39 <td valign="top" class="name"> 31 40 <label for="assetType">Asset Type:</label> 32 41 </td> 33 42 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}"> 34 43 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select> 44 </td> 45 </tr> 46 47 <tr class="prop"> 48 <td valign="top" class="name"> 49 <label for="systemSection">System Section:</label> 50 </td> 51 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}"> 52 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select> 35 53 </td> 36 54 </tr> … … 53 71 </td> 54 72 </tr> 55 56 <tr class="prop"> 57 <td valign="top" class="name"> 58 <label for="name">Name:</label> 59 </td> 60 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 61 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,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:assetInstance,field:'systemSection','errors')}"> 70 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select> 71 </td> 72 </tr> 73 73 74 74 </tbody> 75 75 </table> -
trunk/grails-app/views/assetDetailed/edit.gsp
r122 r124 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for="name">Name:</label> 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 37 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 38 </td> 39 </tr> 40 41 <tr class="prop"> 42 <td valign="top" class="name"> 34 43 <label for="assetType">Asset Type:</label> 35 44 </td> 36 45 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}"> 37 46 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select> 47 </td> 48 </tr> 49 50 <tr class="prop"> 51 <td valign="top" class="name"> 52 <label for="systemSection">System Section:</label> 53 </td> 54 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}"> 55 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select> 38 56 </td> 39 57 </tr> … … 45 63 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 46 64 <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 65 </td> 66 </tr> 67 68 <tr class="prop"> 69 <td valign="top" class="name"> 70 <label for="assetExtendedAttributes">Asset Extended Attributes:</label> 71 </td> 72 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetExtendedAttributes','errors')}"> 73 74 <ul> 75 <g:each var="a" in="${assetInstance?.assetExtendedAttributes?}"> 76 <li><g:link controller="assetExtendedAttributeDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 77 </g:each> 78 </ul> 79 <g:link controller="assetExtendedAttributeDetailed" params="['asset.id':assetInstance?.id]" action="create">Add AssetExtendedAttribute</g:link> 80 47 81 </td> 48 82 </tr> … … 65 99 <ul> 66 100 <g:each var="m" in="${assetInstance?.maintenanceActions?}"> 67 <li><g:link controller="maintenanceAction " action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>101 <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 68 102 </g:each> 69 103 </ul> 70 <g:link controller="maintenanceAction " params="['asset.id':assetInstance?.id]" action="create">Add MaintenanceAction</g:link>104 <g:link controller="maintenanceActionDetailed" params="['asset.id':assetInstance?.id]" action="create">Add MaintenanceAction</g:link> 71 105 72 </td>73 </tr>74 75 <tr class="prop">76 <td valign="top" class="name">77 <label for="name">Name:</label>78 </td>79 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}">80 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>81 </td>82 </tr>83 84 <tr class="prop">85 <td valign="top" class="name">86 <label for="systemSection">System Section:</label>87 </td>88 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}">89 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>90 106 </td> 91 107 </tr> -
trunk/grails-app/views/assetDetailed/list.gsp
r122 r124 23 23 24 24 <g:sortableColumn property="id" title="Id" /> 25 26 <g:sortableColumn property="name" title="Name" /> 27 28 <g:sortableColumn property="assetType" title="Asset Type" /> 25 29 26 <th>Asset Type</th> 27 28 <g:sortableColumn property="description" title="Description" /> 29 30 <g:sortableColumn property="isActive" title="Is Active" /> 31 32 <g:sortableColumn property="name" title="Name" /> 33 34 <th>System Section</th> 30 <g:sortableColumn property="systemSection" title="System Section" /> 31 32 <g:sortableColumn property="isActive" title="Is Active" /> 33 34 <th></th> 35 35 36 36 </tr> … … 38 38 <tbody> 39 39 <g:each in="${assetInstanceList}" status="i" var="assetInstance"> 40 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">40 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'/> 41 41 42 <td><g:link action="show" id="${assetInstance.id}">${fieldValue(bean:assetInstance, field:'id')}</g:link></td> 43 42 <td>${fieldValue(bean:assetInstance, field:'id')}</td> 43 44 <td>${fieldValue(bean:assetInstance, field:'name')}</td> 45 44 46 <td>${fieldValue(bean:assetInstance, field:'assetType')}</td> 45 46 <td>${fieldValue(bean:assetInstance, field:' description')}</td>47 47 48 <td>${fieldValue(bean:assetInstance, field:'systemSection')}</td> 49 48 50 <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> 49 50 <td>${fieldValue(bean:assetInstance, field:'name')}</td> 51 52 <td>${fieldValue(bean:assetInstance, field:'systemSection')}</td> 51 52 <td> 53 <g:link action="show" id="${assetInstance.id}"> 54 <img src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" /> 55 </g:link> 56 </td> 53 57 54 58 </tr> -
trunk/grails-app/views/assetDetailed/show.gsp
r122 r124 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name">Name:</td> 34 35 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'name')}</td> 36 37 </tr> 38 39 <tr class="prop"> 33 40 <td valign="top" class="name">Asset Type:</td> 34 41 35 <td valign="top" class="value"><g:link controller="assetType" action="show" id="${assetInstance?.assetType?.id}">${assetInstance?.assetType?.encodeAsHTML()}</g:link></td> 42 <td valign="top" class="value"> 43 ${assetInstance?.assetType?.encodeAsHTML()} 44 <ul> 45 <g:each var="a" in="${assetInstance.assetType.assemblies}"> 46 <li> 47 ${a?.encodeAsHTML()} 48 <ul> 49 <g:each var="s" in="${a.subAssemblies}"> 50 <li>${s?.encodeAsHTML()}</li> 51 </g:each> 52 </ul> 53 </li> 54 </g:each> 55 </ul> 56 </td> 57 58 </tr> 59 60 <tr class="prop"> 61 <td valign="top" class="name">System Section:</td> 62 63 <td valign="top" class="value"><g:link controller="systemSectionDetailed" action="show" id="${assetInstance?.systemSection?.id}">${assetInstance?.systemSection?.encodeAsHTML()}</g:link></td> 36 64 37 65 </tr> … … 41 69 42 70 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> 71 72 </tr> 73 74 <tr class="prop"> 75 <td valign="top" class="name">Asset Extended Attributes:</td> 76 77 <td valign="top" style="text-align:left;" class="value"> 78 <ul> 79 <g:each var="a" in="${assetInstance.assetExtendedAttributes}"> 80 <li><g:link controller="assetExtendedAttributeDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 81 </g:each> 82 </ul> 83 </td> 43 84 44 85 </tr> … … 57 98 <ul> 58 99 <g:each var="m" in="${assetInstance.maintenanceActions}"> 59 <li><g:link controller="maintenanceAction " action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>100 <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 60 101 </g:each> 61 102 </ul> 62 103 </td> 63 64 </tr>65 66 <tr class="prop">67 <td valign="top" class="name">Name:</td>68 69 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'name')}</td>70 71 </tr>72 73 <tr class="prop">74 <td valign="top" class="name">System Section:</td>75 76 <td valign="top" class="value"><g:link controller="systemSection" action="show" id="${assetInstance?.systemSection?.id}">${assetInstance?.systemSection?.encodeAsHTML()}</g:link></td>77 104 78 105 </tr>
Note: See TracChangeset
for help on using the changeset viewer.