[59] | 1 | <head> |
---|
[150] | 2 | <meta name="layout" content="main" /> |
---|
| 3 | <title>Edit 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 | <g:if test="${params.message}"> |
---|
| 18 | <div class="message">${params.message}</div> |
---|
| 19 | </g:if> |
---|
| 20 | <g:hasErrors bean="${person}"> |
---|
| 21 | <div class="errors"> |
---|
| 22 | <g:renderErrors bean="${person}" as="list" /> |
---|
| 23 | </div> |
---|
| 24 | </g:hasErrors> |
---|
[59] | 25 | |
---|
[150] | 26 | <!--<div class="prop"> |
---|
| 27 | <span class="name">ID: ${person.id}</span> |
---|
| 28 | </div>--> |
---|
[59] | 29 | |
---|
[150] | 30 | <g:form> |
---|
| 31 | <input type="hidden" name="id" value="${person.id}" /> |
---|
| 32 | <input type="hidden" name="version" value="${person.version}" /> |
---|
[73] | 33 | <input type="hidden" name="password" value="${person.password}" /> |
---|
[150] | 34 | <div class="dialog"> |
---|
| 35 | <table> |
---|
| 36 | <tbody> |
---|
[59] | 37 | |
---|
[150] | 38 | <tr class="prop"> |
---|
| 39 | <td valign="top" class="name"><label for="loginName">Login Name:</label></td> |
---|
| 40 | <td valign="top" class="value ${hasErrors(bean:person,field:'loginName','errors')}"> |
---|
| 41 | <input type="text" id="loginName" name="loginName" value="${person.loginName?.encodeAsHTML()}"/> |
---|
| 42 | </td> |
---|
| 43 | </tr> |
---|
[59] | 44 | |
---|
[150] | 45 | <tr class="prop"> |
---|
| 46 | <td valign="top" class="name"><label for="firstName">First Name:</label></td> |
---|
| 47 | <td valign="top" class="value ${hasErrors(bean:person,field:'firstName','errors')}"> |
---|
| 48 | <input type="text" id="firstName" name="firstName" value="${person.firstName?.encodeAsHTML()}"/> |
---|
| 49 | </td> |
---|
| 50 | </tr> |
---|
[59] | 51 | |
---|
| 52 | <tr class="prop"> |
---|
[65] | 53 | <td valign="top" class="name"><label for="lastName">Last Name:</label></td> |
---|
[59] | 54 | <td valign="top" class="value ${hasErrors(bean:person,field:'lastName','errors')}"> |
---|
| 55 | <input type="text" id="lastName" name="lastName" value="${person.lastName?.encodeAsHTML()}"/> |
---|
| 56 | </td> |
---|
| 57 | </tr> |
---|
| 58 | |
---|
[150] | 59 | <tr class="prop"> |
---|
| 60 | <td valign="top" class="name"><label for="pass">Password:</label></td> |
---|
| 61 | <td valign="top" class="value ${hasErrors(bean:person,field:'pass','errors')}"> |
---|
| 62 | <input type="password" id="pass" name="pass" value="${person.pass?.encodeAsHTML()}"/> |
---|
| 63 | </td> |
---|
| 64 | </tr> |
---|
[59] | 65 | |
---|
[150] | 66 | <tr class="prop"> |
---|
| 67 | <td valign="top" class="name"><label for="isActive">isActive:</label></td> |
---|
| 68 | <td valign="top" class="value ${hasErrors(bean:person,field:'isActive','errors')}"> |
---|
| 69 | <g:checkBox name="isActive" value="${person.isActive}"/> |
---|
| 70 | </td> |
---|
| 71 | </tr> |
---|
[59] | 72 | |
---|
[150] | 73 | <tr class="prop"> |
---|
| 74 | <td valign="top" class="name"><label for="description">Description:</label></td> |
---|
| 75 | <td valign="top" class="value ${hasErrors(bean:person,field:'description','errors')}"> |
---|
| 76 | <input type="text" id="description" name="description" value="${person.description?.encodeAsHTML()}"/> |
---|
| 77 | </td> |
---|
| 78 | </tr> |
---|
[59] | 79 | |
---|
[150] | 80 | <tr class="prop"> |
---|
| 81 | <td valign="top" class="name"><label for="email">Email:</label></td> |
---|
| 82 | <td valign="top" class="value ${hasErrors(bean:person,field:'email','errors')}"> |
---|
| 83 | <input type="text" id="email" name="email" value="${person?.email?.encodeAsHTML()}"/> |
---|
| 84 | </td> |
---|
| 85 | </tr> |
---|
[59] | 86 | |
---|
[150] | 87 | <tr class="prop"> |
---|
| 88 | <td valign="top" class="name"><label for="emailShow">Show Email:</label></td> |
---|
| 89 | <td valign="top" class="value ${hasErrors(bean:person,field:'emailShow','errors')}"> |
---|
| 90 | <g:checkBox name="emailShow" value="${person.emailShow}"/> |
---|
| 91 | </td> |
---|
| 92 | </tr> |
---|
[59] | 93 | |
---|
| 94 | <tr class="prop"> |
---|
| 95 | <td valign="top" class="name"><label for="employeeID">employee ID:</label></td> |
---|
| 96 | <td valign="top" class="value ${hasErrors(bean:person,field:'employeeID','errors')}"> |
---|
| 97 | <input type="text" id="employeeID" name="employeeID" value="${person.employeeID?.encodeAsHTML()}"/> |
---|
| 98 | </td> |
---|
| 99 | </tr> |
---|
| 100 | |
---|
[97] | 101 | <tr class="prop"> |
---|
| 102 | <td valign="top" class="name" align="left">Authorities:</td> |
---|
| 103 | </tr> |
---|
[59] | 104 | |
---|
[97] | 105 | <g:each var="entry" in="${roleMap}"> |
---|
| 106 | <tr> |
---|
| 107 | <td valign="top" class="name" align="left">${entry.key.authority.encodeAsHTML()}</td> |
---|
| 108 | <td align="left"><g:checkBox name="${entry.key.authority}" value="${entry.value}"/></td> |
---|
| 109 | </tr> |
---|
| 110 | </g:each> |
---|
| 111 | |
---|
[150] | 112 | </tbody> |
---|
| 113 | </table> |
---|
| 114 | </div> |
---|
[59] | 115 | |
---|
[150] | 116 | <div class="buttons"> |
---|
| 117 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 118 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 119 | </div> |
---|
[59] | 120 | |
---|
[150] | 121 | </g:form> |
---|
[59] | 122 | |
---|
[150] | 123 | </div> |
---|
[59] | 124 | </body> |
---|