- Timestamp:
- May 4, 2009, 1:59:11 PM (16 years ago)
- Location:
- trunk/grails-app/views/plannedMaintenanceDetailed
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
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>
Note: See TracChangeset
for help on using the changeset viewer.