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