| 1 | <head> | 
|---|
| 2 |     <meta name="layout" content="main" /> | 
|---|
| 3 |     <title>Show Person</title> | 
|---|
| 4 |     <nav:resources override="true"/> | 
|---|
| 5 | </head> | 
|---|
| 6 |  | 
|---|
| 7 | <body> | 
|---|
| 8 |  | 
|---|
| 9 |     <div class="nav"> | 
|---|
| 10 |         <nav:renderSubItems group="navAlt"/> | 
|---|
| 11 |     </div> | 
|---|
| 12 |  | 
|---|
| 13 |     <div class="body"> | 
|---|
| 14 |         <g:render template="/shared/messages" /> | 
|---|
| 15 |         <div class="dialog"> | 
|---|
| 16 |             <table> | 
|---|
| 17 |             <tbody> | 
|---|
| 18 |  | 
|---|
| 19 |                 <tr class="prop"> | 
|---|
| 20 |                     <td valign="top" class="name">ID:</td> | 
|---|
| 21 |                     <td valign="top" class="value">${person.id}</td> | 
|---|
| 22 |                 </tr> | 
|---|
| 23 |  | 
|---|
| 24 |                 <tr class="prop"> | 
|---|
| 25 |                     <td valign="top" class="name">Login Name:</td> | 
|---|
| 26 |                     <td valign="top" class="value">${person.loginName?.encodeAsHTML()}</td> | 
|---|
| 27 |                 </tr> | 
|---|
| 28 |  | 
|---|
| 29 |                 <tr class="prop"> | 
|---|
| 30 |                     <td valign="top" class="name">First Name:</td> | 
|---|
| 31 |                     <td valign="top" class="value">${person.firstName?.encodeAsHTML()}</td> | 
|---|
| 32 |                 </tr> | 
|---|
| 33 |  | 
|---|
| 34 |                 <tr class="prop"> | 
|---|
| 35 |                     <td valign="top" class="name">Last Name:</td> | 
|---|
| 36 |                     <td valign="top" class="value">${person.lastName?.encodeAsHTML()}</td> | 
|---|
| 37 |                 </tr> | 
|---|
| 38 |  | 
|---|
| 39 |                 <tr class="prop"> | 
|---|
| 40 |                     <td valign="top" class="name">Active:</td> | 
|---|
| 41 |                     <td valign="top" class="value">${person.isActive}</td> | 
|---|
| 42 |                 </tr> | 
|---|
| 43 |  | 
|---|
| 44 |                 <tr class="prop"> | 
|---|
| 45 |                     <td valign="top" class="name">Description:</td> | 
|---|
| 46 |                     <td valign="top" class="value">${person.description?.encodeAsHTML()}</td> | 
|---|
| 47 |                 </tr> | 
|---|
| 48 |  | 
|---|
| 49 |                 <tr class="prop"> | 
|---|
| 50 |                     <td valign="top" class="name">Contact:</td> | 
|---|
| 51 |  | 
|---|
| 52 |                     <td  valign="top" class="value"> | 
|---|
| 53 |                         <ul> | 
|---|
| 54 |                         <g:each var="i" in="${person.contacts}"> | 
|---|
| 55 |                             <li><g:link controller="contactDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> | 
|---|
| 56 |                         </g:each> | 
|---|
| 57 |                         </ul> | 
|---|
| 58 |                     </td> | 
|---|
| 59 |  | 
|---|
| 60 |                 </tr> | 
|---|
| 61 |  | 
|---|
| 62 |                 <tr class="prop"> | 
|---|
| 63 |                     <td valign="top" class="name">Addresses:</td> | 
|---|
| 64 |  | 
|---|
| 65 |                     <td  valign="top" class="value"> | 
|---|
| 66 |                         <ul> | 
|---|
| 67 |                         <g:each var="i" in="${person.addresses}"> | 
|---|
| 68 |                             <li><g:link controller="addressDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> | 
|---|
| 69 |                         </g:each> | 
|---|
| 70 |                         </ul> | 
|---|
| 71 |                     </td> | 
|---|
| 72 |  | 
|---|
| 73 |                 </tr> | 
|---|
| 74 |  | 
|---|
| 75 |                 <tr class="prop"> | 
|---|
| 76 |                     <td valign="top" class="name">Employee ID:</td> | 
|---|
| 77 |                     <td valign="top" class="value">${person.employeeID}</td> | 
|---|
| 78 |                 </tr> | 
|---|
| 79 |  | 
|---|
| 80 |                 <tr class="prop"> | 
|---|
| 81 |                     <td valign="top" class="name">Department:</td> | 
|---|
| 82 |                     <td valign="top" class="value">${person.department}</td> | 
|---|
| 83 |                 </tr> | 
|---|
| 84 |  | 
|---|
| 85 |                 <tr class="prop"> | 
|---|
| 86 |                     <td valign="top" class="name">Groups:</td> | 
|---|
| 87 |                     <td valign="top" class="value"> | 
|---|
| 88 |                         <ul> | 
|---|
| 89 |                         <g:each var='group' in="${ person.personGroups.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> | 
|---|
| 90 |                             <li> | 
|---|
| 91 |                                 <g:link controller="personGroupDetailed" | 
|---|
| 92 |                                                 action="show" | 
|---|
| 93 |                                                 id="${group.id}"> | 
|---|
| 94 |                                     ${group.encodeAsHTML()} | 
|---|
| 95 |                                 </g:link> | 
|---|
| 96 |                             </li> | 
|---|
| 97 |                         </g:each> | 
|---|
| 98 |                         </ul> | 
|---|
| 99 |                     </td> | 
|---|
| 100 |                 </tr> | 
|---|
| 101 |  | 
|---|
| 102 |                 <tr class="prop"> | 
|---|
| 103 |                     <td valign="top" class="name">Purchasing Groups:</td> | 
|---|
| 104 |                     <td valign="top" class="value"> | 
|---|
| 105 |                         <ul> | 
|---|
| 106 |                         <g:each  var='a' in="${ person.purchasingGroups.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> | 
|---|
| 107 |                             <li> | 
|---|
| 108 |                                 <g:link controller="purchasingGroupDetailed" | 
|---|
| 109 |                                                 action="show" | 
|---|
| 110 |                                                 id="${a.id}"> | 
|---|
| 111 |                                     ${a.encodeAsHTML()} | 
|---|
| 112 |                                 </g:link> | 
|---|
| 113 |                             </li> | 
|---|
| 114 |                         </g:each> | 
|---|
| 115 |                         </ul> | 
|---|
| 116 |                     </td> | 
|---|
| 117 |                 </tr> | 
|---|
| 118 |  | 
|---|
| 119 |                 <tr class="prop"> | 
|---|
| 120 |                     <td valign="top" class="name">Authorities:</td> | 
|---|
| 121 |                     <td valign="top" class="value"> | 
|---|
| 122 |                         <ul> | 
|---|
| 123 |                         <g:each  var='a' in="${authorityList}"> | 
|---|
| 124 |                             <li>${a.description.encodeAsHTML()}</li> | 
|---|
| 125 |                         </g:each> | 
|---|
| 126 |                         </ul> | 
|---|
| 127 |                     </td> | 
|---|
| 128 |                 </tr> | 
|---|
| 129 |  | 
|---|
| 130 |             </tbody> | 
|---|
| 131 |             </table> | 
|---|
| 132 |         </div> | 
|---|
| 133 |  | 
|---|
| 134 |         <div class="buttons"> | 
|---|
| 135 |             <g:form> | 
|---|
| 136 |                 <input type="hidden" name="id" value="${person.id}" /> | 
|---|
| 137 |                 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> | 
|---|
| 138 |                 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> | 
|---|
| 139 |             </g:form> | 
|---|
| 140 |         </div> | 
|---|
| 141 |  | 
|---|
| 142 |     </div> | 
|---|
| 143 | </body> | 
|---|