Changeset 124 for trunk/grails-app/views
- Timestamp:
- May 4, 2009, 1:59:11 PM (16 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 35 edited
- 6 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/appCore/home.gsp
r116 r124 10 10 <span class="menuButton"><g:link class="list" controller="taskDetailed" action="list">Tasks</g:link></span> 11 11 <span class="menuButton"><g:link class="list" controller="inventoryItemDetailed" action="list">Inventory</g:link></span> 12 <span class="menuButton"><g:link class="list" controller="assetDetailed" action="list">Assets</g:link></span> 12 13 13 14 </div> -
trunk/grails-app/views/asset/edit.gsp
r122 r124 29 29 <table> 30 30 <tbody> 31 32 <tr class="prop"> 33 <td valign="top" class="name"> 34 <label for="assetExtendedAttributes">Asset Extended Attributes:</label> 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetExtendedAttributes','errors')}"> 37 38 <ul> 39 <g:each var="a" in="${assetInstance?.assetExtendedAttributes?}"> 40 <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 41 </g:each> 42 </ul> 43 <g:link controller="assetExtendedAttribute" params="['asset.id':assetInstance?.id]" action="create">Add AssetExtendedAttribute</g:link> 44 45 </td> 46 </tr> 31 47 32 48 <tr class="prop"> -
trunk/grails-app/views/asset/show.gsp
r122 r124 27 27 28 28 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'id')}</td> 29 30 </tr> 31 32 <tr class="prop"> 33 <td valign="top" class="name">Asset Extended Attributes:</td> 34 35 <td valign="top" style="text-align:left;" class="value"> 36 <ul> 37 <g:each var="a" in="${assetInstance.assetExtendedAttributes}"> 38 <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 39 </g:each> 40 </ul> 41 </td> 29 42 30 43 </tr> -
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> -
trunk/grails-app/views/assetExtendedAttribute/create.gsp
r122 r124 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for="asset ExtendedAttributeType">Asset Extended Attribute Type:</label>31 <label for="asset">Asset:</label> 32 32 </td> 33 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset ExtendedAttributeType','errors')}">34 <g:select optionKey="id" from="${Asset ExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select>33 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 34 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 35 35 </td> 36 36 </tr> … … 38 38 <tr class="prop"> 39 39 <td valign="top" class="name"> 40 <label for="asset Type">AssetType:</label>40 <label for="assetExtendedAttributeType">Asset Extended Attribute Type:</label> 41 41 </td> 42 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset Type','errors')}">43 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${assetExtendedAttributeInstance?.assetType?.id}" ></g:select>42 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'assetExtendedAttributeType','errors')}"> 43 <g:select optionKey="id" from="${AssetExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select> 44 44 </td> 45 45 </tr> -
trunk/grails-app/views/assetExtendedAttribute/edit.gsp
r122 r124 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for="asset ExtendedAttributeType">Asset Extended Attribute Type:</label>34 <label for="asset">Asset:</label> 35 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset ExtendedAttributeType','errors')}">37 <g:select optionKey="id" from="${Asset ExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select>36 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 37 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 38 38 </td> 39 39 </tr> … … 41 41 <tr class="prop"> 42 42 <td valign="top" class="name"> 43 <label for="asset Type">AssetType:</label>43 <label for="assetExtendedAttributeType">Asset Extended Attribute Type:</label> 44 44 </td> 45 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset Type','errors')}">46 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${assetExtendedAttributeInstance?.assetType?.id}" ></g:select>45 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'assetExtendedAttributeType','errors')}"> 46 <g:select optionKey="id" from="${AssetExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select> 47 47 </td> 48 48 </tr> -
trunk/grails-app/views/assetExtendedAttribute/list.gsp
r122 r124 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <th>Asset</th> 27 26 28 <th>Asset Extended Attribute Type</th> 27 28 <th>Asset Type</th>29 29 30 30 <g:sortableColumn property="isActive" title="Is Active" /> … … 40 40 <td><g:link action="show" id="${assetExtendedAttributeInstance.id}">${fieldValue(bean:assetExtendedAttributeInstance, field:'id')}</g:link></td> 41 41 42 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'asset')}</td> 43 42 44 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'assetExtendedAttributeType')}</td> 43 44 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'assetType')}</td>45 45 46 46 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'isActive')}</td> -
trunk/grails-app/views/assetExtendedAttribute/show.gsp
r122 r124 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name">Asset Extended Attribute Type:</td>33 <td valign="top" class="name">Asset:</td> 34 34 35 <td valign="top" class="value"><g:link controller="asset ExtendedAttributeType" action="show" id="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}">${assetExtendedAttributeInstance?.assetExtendedAttributeType?.encodeAsHTML()}</g:link></td>35 <td valign="top" class="value"><g:link controller="asset" action="show" id="${assetExtendedAttributeInstance?.asset?.id}">${assetExtendedAttributeInstance?.asset?.encodeAsHTML()}</g:link></td> 36 36 37 37 </tr> 38 38 39 39 <tr class="prop"> 40 <td valign="top" class="name">Asset Type:</td>40 <td valign="top" class="name">Asset Extended Attribute Type:</td> 41 41 42 <td valign="top" class="value"><g:link controller="asset Type" action="show" id="${assetExtendedAttributeInstance?.assetType?.id}">${assetExtendedAttributeInstance?.assetType?.encodeAsHTML()}</g:link></td>42 <td valign="top" class="value"><g:link controller="assetExtendedAttributeType" action="show" id="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}">${assetExtendedAttributeInstance?.assetExtendedAttributeType?.encodeAsHTML()}</g:link></td> 43 43 44 44 </tr> -
trunk/grails-app/views/assetExtendedAttributeDetailed/create.gsp
r122 r124 38 38 <tr class="prop"> 39 39 <td valign="top" class="name"> 40 <label for="asset Type">Asset Type:</label>40 <label for="asset">Asset:</label> 41 41 </td> 42 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset Type','errors')}">43 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${assetExtendedAttributeInstance?.assetType?.id}" ></g:select>42 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 43 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 44 44 </td> 45 45 </tr> -
trunk/grails-app/views/assetExtendedAttributeDetailed/edit.gsp
r122 r124 41 41 <tr class="prop"> 42 42 <td valign="top" class="name"> 43 <label for="asset Type">Asset Type:</label>43 <label for="asset">Asset:</label> 44 44 </td> 45 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset Type','errors')}">46 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${assetExtendedAttributeInstance?.assetType?.id}" ></g:select>45 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 46 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 47 47 </td> 48 48 </tr> -
trunk/grails-app/views/assetExtendedAttributeDetailed/list.gsp
r122 r124 26 26 <th>Asset Extended Attribute Type</th> 27 27 28 <th>Asset Type</th>28 <th>Asset</th> 29 29 30 30 <g:sortableColumn property="isActive" title="Is Active" /> 31 31 32 32 <g:sortableColumn property="value" title="Value" /> 33 34 <th></th> 33 35 34 36 </tr> … … 36 38 <tbody> 37 39 <g:each in="${assetExtendedAttributeInstanceList}" status="i" var="assetExtendedAttributeInstance"> 38 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 40 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/assetExtendedAttributeDetailed/show/${assetExtendedAttributeInstance.id}"'/> 41 39 42 40 43 <td><g:link action="show" id="${assetExtendedAttributeInstance.id}">${fieldValue(bean:assetExtendedAttributeInstance, field:'id')}</g:link></td> … … 42 45 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'assetExtendedAttributeType')}</td> 43 46 44 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'asset Type')}</td>47 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'asset')}</td> 45 48 46 49 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'isActive')}</td> 47 50 48 51 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td> 52 53 <td> 54 <g:link action="show" id="${assetExtendedAttributeInstance.id}"> 55 <img src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" /> 56 </g:link> 57 </td> 49 58 50 59 </tr> -
trunk/grails-app/views/assetExtendedAttributeDetailed/show.gsp
r122 r124 33 33 <td valign="top" class="name">Asset Extended Attribute Type:</td> 34 34 35 <td valign="top" class="value"> <g:link controller="assetExtendedAttributeType" action="show" id="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}">${assetExtendedAttributeInstance?.assetExtendedAttributeType?.encodeAsHTML()}</g:link></td>35 <td valign="top" class="value">${assetExtendedAttributeInstance?.assetExtendedAttributeType?.encodeAsHTML()}</td> 36 36 37 37 </tr> 38 38 39 39 <tr class="prop"> 40 <td valign="top" class="name">Asset Type:</td>40 <td valign="top" class="name">Asset:</td> 41 41 42 <td valign="top" class="value"><g:link controller="asset Type" action="show" id="${assetExtendedAttributeInstance?.assetType?.id}">${assetExtendedAttributeInstance?.assetType?.encodeAsHTML()}</g:link></td>42 <td valign="top" class="value"><g:link controller="assetDetailed" action="show" id="${assetExtendedAttributeInstance?.asset?.id}">${assetExtendedAttributeInstance?.asset?.encodeAsHTML()}</g:link></td> 43 43 44 44 </tr> -
trunk/grails-app/views/assetType/edit.gsp
r122 r124 39 39 size="5" multiple="yes" optionKey="id" 40 40 value="${assetTypeInstance?.assemblies}" /> 41 42 </td>43 </tr>44 45 <tr class="prop">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 41 58 42 </td> -
trunk/grails-app/views/assetType/show.gsp
r122 r124 37 37 <g:each var="a" in="${assetTypeInstance.assemblies}"> 38 38 <li><g:link controller="assembly" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 39 </g:each>40 </ul>41 </td>42 43 </tr>44 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 39 </g:each> 53 40 </ul> -
trunk/grails-app/views/inventoryItemDetailed/list.gsp
r116 r124 28 28 <g:sortableColumn property="description" title="Description" /> 29 29 30 <g:sortableColumn property="reorderPoint" title="Reorder Point" />31 32 30 <g:sortableColumn property="enableReorder" title="Enable Reorder" /> 33 31 34 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="${inventoryItemInstanceList}" status="i" var="inventoryItemInstance"> 40 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">40 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"'/> 41 41 42 <td> <g:link action="show" id="${inventoryItemInstance.id}">${fieldValue(bean:inventoryItemInstance, field:'id')}</g:link></td>42 <td>${fieldValue(bean:inventoryItemInstance, field:'id')}</td> 43 43 44 44 <td>${fieldValue(bean:inventoryItemInstance, field:'name')}</td> … … 46 46 <td>${fieldValue(bean:inventoryItemInstance, field:'description')}</td> 47 47 48 <td>${fieldValue(bean:inventoryItemInstance, field:'reorderPoint')}</td>49 50 48 <td>${fieldValue(bean:inventoryItemInstance, field:'enableReorder')}</td> 51 49 52 50 <td>${fieldValue(bean:inventoryItemInstance, field:'isActive')}</td> 51 52 <td> 53 <g:link action="show" id="${inventoryItemInstance.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/inventoryItemDetailed/show.gsp
r116 r124 166 166 <ul> 167 167 <g:each var="s" in="${inventoryItemInstance.spareFor}"> 168 <li><g:link controller="asset " action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>168 <li><g:link controller="assetDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 169 169 </g:each> 170 170 </ul> -
trunk/grails-app/views/login/auth.gsp
r114 r124 46 46 <div id='login'> 47 47 <h1>Welcome to gnuMims please log in</h1> 48 The demo users are <b> manager</b> and <b>user</b> bothhaving the password: <b>pass</b>48 The demo users are <b>user</b>, <b>manager</b> and <b>admin</b> all having the password: <b>pass</b> 49 49 50 50 <div class='inner'> -
trunk/grails-app/views/maintenanceAction/create.gsp
r122 r124 23 23 </g:hasErrors> 24 24 <g:form action="save" method="post" > 25 <g:hiddenField name="plannedMaintenance.id" value="${maintenanceActionInstance.plannedMaintenance.id}" /> 25 26 <div class="dialog"> 26 27 <table> … … 83 84 <tr class="prop"> 84 85 <td valign="top" class="name"> 85 <label for=" description">Description:</label>86 <label for="pmStepNumber">Pm Step Number:</label> 86 87 </td> 87 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' description','errors')}">88 <input type="text" id=" description" name="description" value="${fieldValue(bean:maintenanceActionInstance,field:'description')}"/>88 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'pmStepNumber','errors')}"> 89 <input type="text" id="pmStepNumber" name="pmStepNumber" value="${fieldValue(bean:maintenanceActionInstance,field:'pmStepNumber')}" /> 89 90 </td> 90 91 </tr> … … 96 97 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}"> 97 98 <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox> 99 </td> 100 </tr> 101 102 <tr class="prop"> 103 <td valign="top" class="name"> 104 <label for="maintenanceAction">Maintenance Action:</label> 105 </td> 106 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenanceAction','errors')}"> 107 <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:maintenanceActionInstance,field:'maintenanceAction')}"/> 98 108 </td> 99 109 </tr> -
trunk/grails-app/views/maintenanceAction/edit.gsp
r122 r124 86 86 <tr class="prop"> 87 87 <td valign="top" class="name"> 88 <label for=" description">Description:</label>88 <label for="pmStepNumber">Pm Step Number:</label> 89 89 </td> 90 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' description','errors')}">91 <input type="text" id=" description" name="description" value="${fieldValue(bean:maintenanceActionInstance,field:'description')}"/>90 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'pmStepNumber','errors')}"> 91 <input type="text" id="pmStepNumber" name="pmStepNumber" value="${fieldValue(bean:maintenanceActionInstance,field:'pmStepNumber')}" /> 92 92 </td> 93 93 </tr> … … 99 99 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}"> 100 100 <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox> 101 </td> 102 </tr> 103 104 <tr class="prop"> 105 <td valign="top" class="name"> 106 <label for="maintenanceAction">Maintenance Action:</label> 107 </td> 108 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenanceAction','errors')}"> 109 <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:maintenanceActionInstance,field:'maintenanceAction')}"/> 101 110 </td> 102 111 </tr> -
trunk/grails-app/views/maintenanceAction/show.gsp
r122 r124 73 73 74 74 <tr class="prop"> 75 <td valign="top" class="name"> Description:</td>75 <td valign="top" class="name">Pm Step Number:</td> 76 76 77 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:' description')}</td>77 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'pmStepNumber')}</td> 78 78 79 79 </tr> … … 83 83 84 84 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'isActive')}</td> 85 86 </tr> 87 88 <tr class="prop"> 89 <td valign="top" class="name">Maintenance Action:</td> 90 91 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'maintenanceAction')}</td> 85 92 86 93 </tr> -
trunk/grails-app/views/maintenanceActionDetailed/create.gsp
r122 r124 23 23 </g:hasErrors> 24 24 <g:form action="save" method="post" > 25 <g:hiddenField name="plannedMaintenance.id" value="${maintenanceActionInstance.plannedMaintenance.id}" /> 25 26 <div class="dialog"> 26 27 <table> 27 <tbody> 28 <tbody> 29 30 <tr class="prop"> 31 <td valign="top" class="name"> 32 <label for="plannedMaintenance">Planned Maintenance:</label> 33 </td> 34 <!-- <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'plannedMaintenance','errors')}"> 35 <g:select optionKey="id" from="${PlannedMaintenance.list()}" name="plannedMaintenance.id" value="${maintenanceActionInstance?.plannedMaintenance?.id}" ></g:select> 36 </td>--> 37 <td valign="top" class="name"> 38 ${maintenanceActionInstance?.plannedMaintenance?.name} 39 </td> 40 </tr> 41 42 43 <tr class="prop"> 44 <td valign="top" class="name"> 45 <label for="maintenanceAction">Maintenance Action:</label> 46 </td> 47 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenanceAction','errors')}"> 48 <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:maintenanceActionInstance,field:'maintenanceAction')}"/> 49 </td> 50 </tr> 51 52 <tr class="prop"> 53 <td valign="top" class="name"> 54 <label for="reasoning">Reasoning:</label> 55 </td> 56 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> 57 <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> 58 </td> 59 </tr> 28 60 29 61 <tr class="prop"> … … 79 111 <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${maintenanceActionInstance?.componentItem?.id}" noSelection="['null':'']"></g:select> 80 112 </td> 81 </tr> 82 83 <tr class="prop"> 84 <td valign="top" class="name"> 85 <label for="description">Description:</label> 86 </td> 87 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'description','errors')}"> 88 <input type="text" id="description" name="description" value="${fieldValue(bean:maintenanceActionInstance,field:'description')}"/> 89 </td> 90 </tr> 113 </tr> 91 114 92 115 <tr class="prop"> … … 110 133 <tr class="prop"> 111 134 <td valign="top" class="name"> 112 <label for="p lannedMaintenance">Planned Maintenance:</label>135 <label for="pmStepNumber">PM Step Number:</label> 113 136 </td> 114 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'p lannedMaintenance','errors')}">115 < g:select optionKey="id" from="${PlannedMaintenance.list()}" name="plannedMaintenance.id" value="${maintenanceActionInstance?.plannedMaintenance?.id}" ></g:select>137 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'pmStepNumber','errors')}"> 138 <input type="text" id="pmStepNumber" name="pmStepNumber" value="${fieldValue(bean:maintenanceActionInstance,field:'pmStepNumber')}"/> 116 139 </td> 117 </tr> 118 119 <tr class="prop"> 120 <td valign="top" class="name"> 121 <label for="reasoning">Reasoning:</label> 122 </td> 123 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> 124 <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> 125 </td> 126 </tr> 140 </tr> 127 141 128 142 </tbody> -
trunk/grails-app/views/maintenanceActionDetailed/edit.gsp
r122 r124 86 86 <tr class="prop"> 87 87 <td valign="top" class="name"> 88 <label for=" description">Description:</label>88 <label for="maintenanceAction">Maintenance Action:</label> 89 89 </td> 90 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' description','errors')}">91 <input type="text" id=" description" name="description" value="${fieldValue(bean:maintenanceActionInstance,field:'description')}"/>90 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenanceAction','errors')}"> 91 <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:maintenanceActionInstance,field:'maintenanceAction')}"/> 92 92 </td> 93 93 </tr> … … 110 110 </td> 111 111 </tr> 112 113 <tr class="prop"> 114 <td valign="top" class="name"> 115 <label for="pmStepNumber">PM Step Number:</label> 116 </td> 117 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'pmStepNumber','errors')}"> 118 <input type="text" id="pmStepNumber" name="pmStepNumber" value="${fieldValue(bean:maintenanceActionInstance,field:'pmStepNumber')}"/> 119 </td> 120 </tr> 112 121 113 122 <tr class="prop"> -
trunk/grails-app/views/maintenanceActionDetailed/list.gsp
r122 r124 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <th>System Section</th> 26 <th>Action</th> 27 28 <th>Planned Maintenance</th> 27 29 28 30 <th>Asset</th> … … 31 33 32 34 <th>Assembly</th> 33 34 <th>Sub Assembly</th>35 36 <th></th> 35 37 36 38 </tr> … … 38 40 <tbody> 39 41 <g:each in="${maintenanceActionInstanceList}" status="i" var="maintenanceActionInstance"> 40 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">41 42 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/maintenanceActionDetailed/show/${maintenanceActionInstance.id}"'/> 43 42 44 <td><g:link action="show" id="${maintenanceActionInstance.id}">${fieldValue(bean:maintenanceActionInstance, field:'id')}</g:link></td> 43 44 <td>${fieldValue(bean:maintenanceActionInstance, field:'systemSection')}</td> 45 46 <td>${fieldValue(bean:maintenanceActionInstance, field:'maintenanceAction')}</td> 47 48 <td>${fieldValue(bean:maintenanceActionInstance, field:'plannedMaintenance')}</td> 45 49 46 50 <td>${fieldValue(bean:maintenanceActionInstance, field:'asset')}</td> … … 50 54 <td>${fieldValue(bean:maintenanceActionInstance, field:'assembly')}</td> 51 55 52 <td>${fieldValue(bean:maintenanceActionInstance, field:'subAssembly')}</td> 53 56 <td> 57 <g:link action="show" id="${maintenanceActionInstance.id}"> 58 <img src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" /> 59 </g:link> 60 </td> 61 54 62 </tr> 55 63 </g:each> -
trunk/grails-app/views/maintenanceActionDetailed/show.gsp
r122 r124 33 33 <td valign="top" class="name">System Section:</td> 34 34 35 <td valign="top" class="value"><g:link controller="systemSection " action="show" id="${maintenanceActionInstance?.systemSection?.id}">${maintenanceActionInstance?.systemSection?.encodeAsHTML()}</g:link></td>35 <td valign="top" class="value"><g:link controller="systemSectionDetailed" action="show" id="${maintenanceActionInstance?.systemSection?.id}">${maintenanceActionInstance?.systemSection?.encodeAsHTML()}</g:link></td> 36 36 37 37 </tr> … … 40 40 <td valign="top" class="name">Asset:</td> 41 41 42 <td valign="top" class="value"><g:link controller="asset " action="show" id="${maintenanceActionInstance?.asset?.id}">${maintenanceActionInstance?.asset?.encodeAsHTML()}</g:link></td>42 <td valign="top" class="value"><g:link controller="assetDetailed" action="show" id="${maintenanceActionInstance?.asset?.id}">${maintenanceActionInstance?.asset?.encodeAsHTML()}</g:link></td> 43 43 44 44 </tr> … … 47 47 <td valign="top" class="name">Asset Type:</td> 48 48 49 <td valign="top" class="value"><g:link controller="assetType " action="show" id="${maintenanceActionInstance?.assetType?.id}">${maintenanceActionInstance?.assetType?.encodeAsHTML()}</g:link></td>49 <td valign="top" class="value"><g:link controller="assetTypeDetailed" action="show" id="${maintenanceActionInstance?.assetType?.id}">${maintenanceActionInstance?.assetType?.encodeAsHTML()}</g:link></td> 50 50 51 51 </tr> … … 54 54 <td valign="top" class="name">Assembly:</td> 55 55 56 <td valign="top" class="value"><g:link controller="assembly " action="show" id="${maintenanceActionInstance?.assembly?.id}">${maintenanceActionInstance?.assembly?.encodeAsHTML()}</g:link></td>56 <td valign="top" class="value"><g:link controller="assemblyDetailed" action="show" id="${maintenanceActionInstance?.assembly?.id}">${maintenanceActionInstance?.assembly?.encodeAsHTML()}</g:link></td> 57 57 58 58 </tr> … … 61 61 <td valign="top" class="name">Sub Assembly:</td> 62 62 63 <td valign="top" class="value"><g:link controller="subAssembly " action="show" id="${maintenanceActionInstance?.subAssembly?.id}">${maintenanceActionInstance?.subAssembly?.encodeAsHTML()}</g:link></td>63 <td valign="top" class="value"><g:link controller="subAssemblyDetailed" action="show" id="${maintenanceActionInstance?.subAssembly?.id}">${maintenanceActionInstance?.subAssembly?.encodeAsHTML()}</g:link></td> 64 64 65 65 </tr> … … 68 68 <td valign="top" class="name">Component Item:</td> 69 69 70 <td valign="top" class="value"><g:link controller="componentItem " action="show" id="${maintenanceActionInstance?.componentItem?.id}">${maintenanceActionInstance?.componentItem?.encodeAsHTML()}</g:link></td>70 <td valign="top" class="value"><g:link controller="componentItemDetailed" action="show" id="${maintenanceActionInstance?.componentItem?.id}">${maintenanceActionInstance?.componentItem?.encodeAsHTML()}</g:link></td> 71 71 72 72 </tr> 73 73 74 74 <tr class="prop"> 75 <td valign="top" class="name"> Description:</td>75 <td valign="top" class="name">Maintenance Action:</td> 76 76 77 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:' description')}</td>77 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'maintenanceAction')}</td> 78 78 79 79 </tr> … … 89 89 <td valign="top" class="name">Maintenance Policy:</td> 90 90 91 <td valign="top" class="value"><g:link controller="maintenancePolicy" action="show" id="${maintenanceActionInstance?.maintenancePolicy?.id}">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</g:link></td> 91 <td valign="top" class="value">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</td> 92 93 </tr> 94 95 <tr class="prop"> 96 <td valign="top" class="name">PM Step Number:</td> 97 98 <td valign="top" class="value">${maintenanceActionInstance?.pmStepNumber?.encodeAsHTML()}</td> 92 99 93 100 </tr> … … 96 103 <td valign="top" class="name">Planned Maintenance:</td> 97 104 98 <td valign="top" class="value"><g:link controller="plannedMaintenance " action="show" id="${maintenanceActionInstance?.plannedMaintenance?.id}">${maintenanceActionInstance?.plannedMaintenance?.encodeAsHTML()}</g:link></td>105 <td valign="top" class="value"><g:link controller="plannedMaintenanceDetailed" action="show" id="${maintenanceActionInstance?.plannedMaintenance?.id}">${maintenanceActionInstance?.plannedMaintenance?.encodeAsHTML()}</g:link></td> 99 106 100 107 </tr> -
trunk/grails-app/views/plannedMaintenanceDetailed/list.gsp
r122 r124 31 31 32 32 <th>Recurring Schedule</th> 33 34 <th></th> 33 35 34 36 </tr> … … 36 38 <tbody> 37 39 <g:each in="${plannedMaintenanceInstanceList}" status="i" var="plannedMaintenanceInstance"> 38 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 40 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/plannedMaintenanceDetailed/show/${plannedMaintenanceInstance.id}"'/> 41 39 42 40 43 <td><g:link action="show" id="${plannedMaintenanceInstance.id}">${fieldValue(bean:plannedMaintenanceInstance, field:'id')}</g:link></td> … … 47 50 48 51 <td>${fieldValue(bean:plannedMaintenanceInstance, field:'recurringSchedule')}</td> 49 52 53 <td> 54 <g:link action="show" id="${plannedMaintenanceInstance.id}"> 55 <img src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" /> 56 </g:link> 57 </td> 58 50 59 </tr> 51 60 </g:each> -
trunk/grails-app/views/plannedMaintenanceDetailed/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:plannedMaintenanceInstance, field:'name')}</td> 36 37 </tr> 38 39 <tr class="prop"> 33 40 <td valign="top" class="name">Description:</td> 34 41 … … 38 45 39 46 <tr class="prop"> 40 <td valign="top" class="name"> Is Active:</td>47 <td valign="top" class="name">Recurring Schedule:</td> 41 48 42 <td valign="top" class="value"> ${fieldValue(bean:plannedMaintenanceInstance, field:'isActive')}</td>49 <td valign="top" class="value"><g:link controller="recurringScheduleDetailed" action="edit" id="${plannedMaintenanceInstance?.recurringSchedule?.id}">${plannedMaintenanceInstance?.recurringSchedule?.encodeAsHTML()}</g:link></td> 43 50 44 51 </tr> 45 52 46 53 <tr class="prop"> 47 <td valign="top" class="name"> Maintenance Actions:</td>54 <td valign="top" class="name">Is Active:</td> 48 55 49 <td valign="top" style="text-align:left;" class="value"> 50 <ul> 51 <g:each var="m" in="${plannedMaintenanceInstance.maintenanceActions}"> 52 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 53 </g:each> 54 </ul> 55 </td> 56 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name">Name:</td> 61 62 <td valign="top" class="value">${fieldValue(bean:plannedMaintenanceInstance, field:'name')}</td> 63 64 </tr> 65 66 <tr class="prop"> 67 <td valign="top" class="name">Recurring Schedule:</td> 68 69 <td valign="top" class="value"><g:link controller="recurringSchedule" action="show" id="${plannedMaintenanceInstance?.recurringSchedule?.id}">${plannedMaintenanceInstance?.recurringSchedule?.encodeAsHTML()}</g:link></td> 56 <td valign="top" class="value">${fieldValue(bean:plannedMaintenanceInstance, field:'isActive')}</td> 70 57 71 58 </tr> … … 81 68 </g:form> 82 69 </div> 70 71 <div class="list"> 72 <h1>Maintenance Actions</h1> 73 <table> 74 <thead> 75 <tr> 76 77 <!-- <g:sortableColumn property="plannedMaintenanceInstance.maintenanceAction.pmStepNumber" title="PM Step" /> --> 78 <th>Step</th> 79 <th>Action</th> 80 <th>System Section</th> 81 <th>Asset</th> 82 <th>Assembly</th> 83 <th>Maintenance Policy</th> 84 <th></th> 85 86 <!-- <g:sortableColumn property="commentW" title="Comment" /> 87 88 <g:sortableColumn property="dateDoneW" title="Date Done" /> 89 90 <g:sortableColumn property="enteredByW" title="Entered By" />--> 91 </tr> 92 </thead> 93 <tbody> 94 <g:each in="${plannedMaintenanceInstance?.maintenanceActions}" status="i" var="maintenanceAction"> 95 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/maintenanceActionDetailed/edit/${maintenanceAction.id}"'/> 96 97 <td>${fieldValue(bean:maintenanceAction, field:'pmStepNumber')}</td> 98 <td>${maintenanceAction.maintenanceAction}</td> 99 <td>${maintenanceAction.systemSection}</td> 100 <td>${maintenanceAction.asset}</td> 101 <td>${maintenanceAction.assembly}</td> 102 <td>${maintenanceAction.maintenancePolicy}</td> 103 104 <td> 105 <g:link controller="maintenanceActionDetailed" action="edit" id="${maintenanceAction.id}"> 106 <img src="${createLinkTo(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> 107 </g:link> 108 </td> 109 110 </tr> 111 </g:each> 112 </tbody> 113 </table> 114 </div> 115 116 <br /> 117 118 <div class="buttons"> 119 <g:form controller="maintenanceActionDetailed"> 120 <input type="hidden" name="plannedMaintenanceInstance.id" value="${plannedMaintenanceInstance?.id}" /> 121 <span class="button"> 122 <g:actionSubmit value="Add Action" action="create" class="add"/> 123 </span> 124 </g:form> 125 </div> 126 83 127 </div> 84 128 </body> -
trunk/grails-app/views/recurringScheduleDetailed/edit.gsp
r122 r124 71 71 </td> 72 72 <td valign="top" class="value ${hasErrors(bean:recurringScheduleInstance,field:'startDate','errors')}"> 73 <g:datePicker name="startDate" value="${recurringScheduleInstance?.startDate}" ></g:datePicker>73 <g:datePicker name="startDate" value="${recurringScheduleInstance?.startDate}" precision="day" ></g:datePicker> 74 74 </td> 75 75 </tr> -
trunk/grails-app/views/recurringScheduleDetailed/show.gsp
r122 r124 33 33 <td valign="top" class="name">Planned Maintenance:</td> 34 34 35 <td valign="top" class="value"><g:link controller="plannedMaintenance " action="show" id="${recurringScheduleInstance?.plannedMaintenance?.id}">${recurringScheduleInstance?.plannedMaintenance?.encodeAsHTML()}</g:link></td>35 <td valign="top" class="value"><g:link controller="plannedMaintenanceDetailed" action="show" id="${recurringScheduleInstance?.plannedMaintenance?.id}">${recurringScheduleInstance?.plannedMaintenance?.encodeAsHTML()}</g:link></td> 36 36 37 37 </tr> … … 47 47 <td valign="top" class="name">Period:</td> 48 48 49 <td valign="top" class="value"> <g:link controller="period" action="show" id="${recurringScheduleInstance?.period?.id}">${recurringScheduleInstance?.period?.encodeAsHTML()}</g:link></td>49 <td valign="top" class="value">${recurringScheduleInstance?.period?.encodeAsHTML()}</td> 50 50 51 51 </tr> … … 61 61 <td valign="top" class="name">Start Date:</td> 62 62 63 <td valign="top" class="value"> ${fieldValue(bean:recurringScheduleInstance, field:'startDate')}</td>63 <td valign="top" class="value"><g:formatDate date="${recurringScheduleInstance.startDate}" format="EEE, dd MMM yyyy"/></td> 64 64 65 65 </tr> … … 68 68 <td valign="top" class="name">Task:</td> 69 69 70 <td valign="top" class="value"><g:link controller="task " action="show" id="${recurringScheduleInstance?.task?.id}">${recurringScheduleInstance?.task?.encodeAsHTML()}</g:link></td>70 <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${recurringScheduleInstance?.task?.id}">${recurringScheduleInstance?.task?.encodeAsHTML()}</g:link></td> 71 71 72 72 </tr> -
trunk/grails-app/views/systemSectionDetailed/edit.gsp
r122 r124 38 38 <ul> 39 39 <g:each var="a" in="${systemSectionInstance?.assets?}"> 40 <li><g:link controller="asset " action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>40 <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 41 41 </g:each> 42 42 </ul> 43 <g:link controller="asset " params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link>43 <g:link controller="assetDetailed" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link> 44 44 45 45 </td> … … 72 72 <ul> 73 73 <g:each var="m" in="${systemSectionInstance?.maintenanceActions?}"> 74 <li><g:link controller="maintenanceAction " action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>74 <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 75 75 </g:each> 76 76 </ul> 77 <g:link controller="maintenanceAction " params="['systemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link>77 <g:link controller="maintenanceActionDetailed" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link> 78 78 79 79 </td> -
trunk/grails-app/views/systemSectionDetailed/show.gsp
r122 r124 36 36 <ul> 37 37 <g:each var="a" in="${systemSectionInstance.assets}"> 38 <li><g:link controller="asset " action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>38 <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 39 39 </g:each> 40 40 </ul> … … 63 63 <ul> 64 64 <g:each var="m" in="${systemSectionInstance.maintenanceActions}"> 65 <li><g:link controller="maintenanceAction " action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>65 <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 66 66 </g:each> 67 67 </ul> -
trunk/grails-app/views/taskDetailed/list.gsp
r110 r124 38 38 <tbody> 39 39 <g:each in="${taskInstanceList}" status="i" var="taskInstance"> 40 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">41 40 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'/> 41 42 42 <td>${fieldValue(bean:taskInstance, field:'id')}</td> 43 43 … … 64 64 </div> 65 65 <div class="paginateButtons"> 66 <g:paginate total="${ Task.count()}" />66 <g:paginate total="${taskInstanceTotal}" /> 67 67 </div> 68 68 </div> -
trunk/grails-app/views/taskDetailed/show.gsp
r106 r124 176 176 <tbody> 177 177 <g:each in="${taskInstance?.entries}" status="i" var="entry"> 178 <g:if test="${entry.entryType == EntryType.findByName('Fault')}"> 179 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">178 <g:if test="${entry.entryType == EntryType.findByName('Fault')}"> 179 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> 180 180 181 181 <td style="width:65%">${entry.comment}</td> … … 183 183 <td>${entry.durationHour}:${entry.durationMinute}</td> 184 184 <td>${entry.enteredBy}</td> 185 185 186 <td> 186 187 <g:link controller="entryDetailed" action="edit" id="${entry.id}"> … … 189 190 </td> 190 191 192 </tr> 191 193 </g:if> 192 193 </tr>194 194 </g:each> 195 195 </tbody> … … 207 207 <th>Entered By</th> 208 208 <th></th> 209 209 210 <!-- <g:sortableColumn property="commentW" title="Comment" /> 210 211 … … 216 217 <tbody> 217 218 <g:each in="${taskInstance?.entries}" status="i" var="entry"> 218 <g:if test="${entry.entryType == EntryType.findByName('WorkDone')}"> 219 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">220 219 <g:if test="${entry.entryType == EntryType.findByName('WorkDone')}"> 220 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> 221 221 222 <td width="65%">${entry.comment}</td> 222 223 <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td> 223 224 <td>${entry.durationHour}:${entry.durationMinute}</td> 224 225 <td>${entry.enteredBy}</td> 226 225 227 <td> 226 228 <g:link controller="entryDetailed" action="edit" id="${entry.id}"> … … 228 230 </g:link> 229 231 </td> 232 233 </tr> 230 234 </g:if> 231 232 </tr>233 235 </g:each> 234 236 </tbody>
Note: See TracChangeset
for help on using the changeset viewer.