[59] | 1 | <head> |
---|
| 2 | <meta name="layout" content="main" /> |
---|
| 3 | <title>Create Person</title> |
---|
[147] | 4 | <nav:resources override="true"/> |
---|
[59] | 5 | </head> |
---|
| 6 | |
---|
| 7 | <body> |
---|
| 8 | |
---|
| 9 | <div class="nav"> |
---|
[147] | 10 | <nav:renderSubItems group="navAlt"/> |
---|
[59] | 11 | </div> |
---|
| 12 | |
---|
| 13 | <div class="body"> |
---|
| 14 | <g:if test="${flash.message}"> |
---|
| 15 | <div class="message">${flash.message}</div> |
---|
| 16 | </g:if> |
---|
| 17 | <g:hasErrors bean="${person}"> |
---|
| 18 | <div class="errors"> |
---|
| 19 | <g:renderErrors bean="${person}" as="list" /> |
---|
| 20 | </div> |
---|
| 21 | </g:hasErrors> |
---|
| 22 | <g:form action="save"> |
---|
| 23 | <div class="dialog"> |
---|
| 24 | <table> |
---|
| 25 | <tbody> |
---|
| 26 | |
---|
| 27 | <tr class="prop"> |
---|
| 28 | <td valign="top" class="name"><label for="loginName">Login Name:</label></td> |
---|
| 29 | <td valign="top" class="value ${hasErrors(bean:person,field:'loginName','errors')}"> |
---|
| 30 | <input type="text" id="loginName" name="loginName" value="${person.loginName?.encodeAsHTML()}"/> |
---|
| 31 | </td> |
---|
| 32 | </tr> |
---|
| 33 | |
---|
| 34 | <tr class="prop"> |
---|
| 35 | <td valign="top" class="name"><label for="firstName">First Name:</label></td> |
---|
| 36 | <td valign="top" class="value ${hasErrors(bean:person,field:'firstName','errors')}"> |
---|
| 37 | <input type="text" id="firstName" name="firstName" value="${person.firstName?.encodeAsHTML()}"/> |
---|
| 38 | </td> |
---|
| 39 | </tr> |
---|
| 40 | |
---|
| 41 | <tr class="prop"> |
---|
| 42 | <td valign="top" class="name"><label for="lastName">Last Name:</label></td> |
---|
| 43 | <td valign="top" class="value ${hasErrors(bean:person,field:'lastName','errors')}"> |
---|
| 44 | <input type="text" id="lastName" name="lastName" value="${person.lastName?.encodeAsHTML()}"/> |
---|
| 45 | </td> |
---|
| 46 | </tr> |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | <tr class="prop"> |
---|
[73] | 50 | <td valign="top" class="name"><label for="pass">Password:</label></td> |
---|
| 51 | <td valign="top" class="value ${hasErrors(bean:person,field:'pass','errors')}"> |
---|
| 52 | <input type="password" id="pass" name="pass"/> |
---|
[59] | 53 | </td> |
---|
| 54 | </tr> |
---|
| 55 | |
---|
| 56 | <tr class="prop"> |
---|
| 57 | <td valign="top" class="name"><label for="isActive">isActive:</label></td> |
---|
| 58 | <td valign="top" class="value ${hasErrors(bean:person,field:'isActive','errors')}"> |
---|
| 59 | <g:checkBox name="isActive" value="${person.isActive}" ></g:checkBox> |
---|
| 60 | </td> |
---|
| 61 | </tr> |
---|
| 62 | |
---|
| 63 | <tr class="prop"> |
---|
| 64 | <td valign="top" class="name"><label for="description">Description:</label></td> |
---|
| 65 | <td valign="top" class="value ${hasErrors(bean:person,field:'description','errors')}"> |
---|
| 66 | <input type="text" id="description" name="description" value="${person.description?.encodeAsHTML()}"/> |
---|
| 67 | </td> |
---|
| 68 | </tr> |
---|
| 69 | |
---|
| 70 | <tr class="prop"> |
---|
| 71 | <td valign="top" class="name"><label for="email">Email:</label></td> |
---|
| 72 | <td valign="top" class="value ${hasErrors(bean:person,field:'email','errors')}"> |
---|
| 73 | <input type="text" id="email" name="email" value="${person.email?.encodeAsHTML()}"/> |
---|
| 74 | </td> |
---|
| 75 | </tr> |
---|
| 76 | |
---|
| 77 | <tr class="prop"> |
---|
| 78 | <td valign="top" class="name"><label for="emailShow">Show Email:</label></td> |
---|
| 79 | <td valign="top" class="value ${hasErrors(bean:person,field:'emailShow','errors')}"> |
---|
| 80 | <g:checkBox name="emailShow" value="${person.emailShow}"/> |
---|
| 81 | </td> |
---|
| 82 | </tr> |
---|
| 83 | |
---|
| 84 | <tr class="prop"> |
---|
| 85 | <td valign="top" class="name"><label for="employeeID">employee ID:</label></td> |
---|
| 86 | <td valign="top" class="value ${hasErrors(bean:person,field:'employeeID','errors')}"> |
---|
| 87 | <input type="text" id="employeeID" name="employeeID" value="${person.employeeID?.encodeAsHTML()}"/> |
---|
| 88 | </td> |
---|
| 89 | </tr> |
---|
| 90 | |
---|
| 91 | <tr class="prop"> |
---|
[97] | 92 | <td valign="top" class="name" align="left">Authorities:</td> |
---|
[59] | 93 | </tr> |
---|
| 94 | |
---|
| 95 | <g:each in="${authorityList}"> |
---|
| 96 | <tr> |
---|
| 97 | <td valign="top" class="name" align="left">${it.authority.encodeAsHTML()}</td> |
---|
| 98 | <td align="left"><g:checkBox name="${it.authority}"/></td> |
---|
| 99 | </tr> |
---|
| 100 | </g:each> |
---|
| 101 | |
---|
| 102 | </tbody> |
---|
| 103 | </table> |
---|
| 104 | </div> |
---|
| 105 | |
---|
| 106 | <div class="buttons"> |
---|
| 107 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 108 | </div> |
---|
| 109 | |
---|
| 110 | </g:form> |
---|
| 111 | |
---|
| 112 | </div> |
---|
| 113 | </body> |
---|