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