[59] | 1 | <head> |
---|
[150] | 2 | <meta name="layout" content="main" /> |
---|
| 3 | <title>Show Person</title> |
---|
[147] | 4 | <nav:resources override="true"/> |
---|
[59] | 5 | </head> |
---|
| 6 | |
---|
| 7 | <body> |
---|
| 8 | |
---|
[150] | 9 | <div class="nav"> |
---|
[147] | 10 | <nav:renderSubItems group="navAlt"/> |
---|
[150] | 11 | </div> |
---|
[59] | 12 | |
---|
[150] | 13 | <div class="body"> |
---|
[725] | 14 | <g:render template="/shared/messages" /> |
---|
[150] | 15 | <div class="dialog"> |
---|
| 16 | <table> |
---|
| 17 | <tbody> |
---|
[59] | 18 | |
---|
[150] | 19 | <tr class="prop"> |
---|
| 20 | <td valign="top" class="name">ID:</td> |
---|
| 21 | <td valign="top" class="value">${person.id}</td> |
---|
| 22 | </tr> |
---|
[59] | 23 | |
---|
[150] | 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> |
---|
[59] | 28 | |
---|
[150] | 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> |
---|
[59] | 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 | |
---|
[150] | 39 | <tr class="prop"> |
---|
[166] | 40 | <td valign="top" class="name">Active:</td> |
---|
[150] | 41 | <td valign="top" class="value">${person.isActive}</td> |
---|
| 42 | </tr> |
---|
[59] | 43 | |
---|
[150] | 44 | <tr class="prop"> |
---|
| 45 | <td valign="top" class="name">Description:</td> |
---|
| 46 | <td valign="top" class="value">${person.description?.encodeAsHTML()}</td> |
---|
| 47 | </tr> |
---|
[59] | 48 | |
---|
[150] | 49 | <tr class="prop"> |
---|
[402] | 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"> |
---|
[397] | 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"> |
---|
[59] | 76 | <td valign="top" class="name">Employee ID:</td> |
---|
| 77 | <td valign="top" class="value">${person.employeeID}</td> |
---|
| 78 | </tr> |
---|
| 79 | |
---|
[150] | 80 | <tr class="prop"> |
---|
[164] | 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> |
---|
[633] | 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> |
---|
[164] | 97 | </g:each> |
---|
| 98 | </ul> |
---|
| 99 | </td> |
---|
| 100 | </tr> |
---|
| 101 | |
---|
| 102 | <tr class="prop"> |
---|
[633] | 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"> |
---|
[150] | 120 | <td valign="top" class="name">Authorities:</td> |
---|
| 121 | <td valign="top" class="value"> |
---|
| 122 | <ul> |
---|
[295] | 123 | <g:each var='a' in="${authorityList}"> |
---|
| 124 | <li>${a.description.encodeAsHTML()}</li> |
---|
[150] | 125 | </g:each> |
---|
| 126 | </ul> |
---|
| 127 | </td> |
---|
| 128 | </tr> |
---|
[59] | 129 | |
---|
[150] | 130 | </tbody> |
---|
| 131 | </table> |
---|
| 132 | </div> |
---|
[59] | 133 | |
---|
[150] | 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> |
---|
[59] | 141 | |
---|
[150] | 142 | </div> |
---|
[59] | 143 | </body> |
---|